From: Oleg Ogurtsov <o.ogurtsov@samsung.com>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, kyungmin.park@samsung.com,
Oleg Ogurtsov <o.ogurtsov@samsung.com>,
e.voevodin@samsung.com
Subject: [Qemu-devel] [PATCH 2/2] hw/exynos4210_rtc.c: remove unnecessary code
Date: Wed, 11 Jul 2012 14:03:28 +0400 [thread overview]
Message-ID: <1342001008-18305-3-git-send-email-o.ogurtsov@samsung.com> (raw)
In-Reply-To: <1342001008-18305-1-git-send-email-o.ogurtsov@samsung.com>
Signed-off-by: Oleg Ogurtsov <o.ogurtsov@samsung.com>
---
hw/exynos4210_rtc.c | 5 +----
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,
--
1.7.5.4
next prev parent reply other threads:[~2012-07-11 10:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-11 10:03 [Qemu-devel] [PATCH 0/2] Exynos4210 RTC Oleg Ogurtsov
2012-07-11 10:03 ` [Qemu-devel] [PATCH 1/2] hw/exynos4210_rtc.c: Fix calculating for value of year Oleg Ogurtsov
2012-07-20 13:15 ` Peter Maydell
2012-07-11 10:03 ` Oleg Ogurtsov [this message]
2012-07-20 13:17 ` [Qemu-devel] [PATCH 2/2] hw/exynos4210_rtc.c: remove unnecessary code Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1342001008-18305-3-git-send-email-o.ogurtsov@samsung.com \
--to=o.ogurtsov@samsung.com \
--cc=e.voevodin@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).