aboutsummaryrefslogtreecommitdiff
path: root/hw/exynos4210_rtc.c
diff options
context:
space:
mode:
authorOleg Ogurtsov <o.ogurtsov@samsung.com>2012-07-11 00:03:28 +0000
committerPeter Maydell <peter.maydell@linaro.org>2012-07-20 14:18:24 +0100
commit4688870d87883784bd151e0b7d024e5027c39f01 (patch)
tree0cb4d5b29ca3430b72632c856379a6d1ee48e8c3 /hw/exynos4210_rtc.c
parent64de1ecfe7b3e88cb9f04c993e14ab85c2b5c532 (diff)
downloadqemu-4688870d87883784bd151e0b7d024e5027c39f01.zip
qemu-4688870d87883784bd151e0b7d024e5027c39f01.tar.gz
qemu-4688870d87883784bd151e0b7d024e5027c39f01.tar.bz2
hw/exynos4210_rtc.c: remove unnecessary code
Signed-off-by: Oleg Ogurtsov <o.ogurtsov@samsung.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/exynos4210_rtc.c')
-rw-r--r--hw/exynos4210_rtc.c5
1 files changed, 1 insertions, 4 deletions
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,