Patchwork [2/2] hw/exynos4210_rtc.c: remove unnecessary code

login
register
mail settings
Submitter Oleg Ogurtsov
Date July 11, 2012, 10:03 a.m.
Message ID <1342001008-18305-3-git-send-email-o.ogurtsov@samsung.com>
Download mbox | patch
Permalink /patch/170416/
State New
Headers show

Comments

Oleg Ogurtsov - July 11, 2012, 10:03 a.m.
Signed-off-by: Oleg Ogurtsov <o.ogurtsov@samsung.com>
---
 hw/exynos4210_rtc.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
Peter Maydell - July 20, 2012, 1:17 p.m.
On 11 July 2012 11:03, Oleg Ogurtsov <o.ogurtsov@samsung.com> wrote:
>
> Signed-off-by: Oleg Ogurtsov <o.ogurtsov@samsung.com>

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

-- PMM

Patch

diff --git a/hw/exynos4210_rtc.c b/hw/exynos4210_rtc.c
index b42586e..42a4ddc 100644
--- a/hw/exynos4210_rtc.c
+++ b/hw/exynos4210_rtc.c
@@ -510,10 +510,7 @@  static void exynos4210_rtc_reset(DeviceState *d)
 {
     Exynos4210RTCState *s = (Exynos4210RTCState *)d;
 
-    struct tm tm;
-
-    qemu_get_timedate(&tm, 0);
-    s->current_tm = tm;
+    qemu_get_timedate(&s->current_tm, 0);
 
     DPRINTF("Get time from host: %d-%d-%d %2d:%02d:%02d\n",
             s->current_tm.tm_year, s->current_tm.tm_mon, s->current_tm.tm_mday,