aboutsummaryrefslogtreecommitdiff
path: root/hw/twl92230.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2009-09-30 19:44:11 +0200
committerBlue Swirl <blauwirbel@gmail.com>2009-09-30 18:45:50 +0000
commitbdd7e1bc6f65c42a43f6177c46b95f87398b5411 (patch)
tree72cf07aa88cdb176b65463ef6b09c10a8f3c94f0 /hw/twl92230.c
parentf90554ad75f135af164d09e015ca9691c5e2e348 (diff)
twl92230: fix old style increment/decrement usage
Modern compilers do not parse "=-" as decrement: you must use "-=" for that. Same for "=+"/"+=". Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/twl92230.c')
-rw-r--r--hw/twl92230.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/twl92230.c b/hw/twl92230.c
index b15a8bf95c..68fab884a7 100644
--- a/hw/twl92230.c
+++ b/hw/twl92230.c
@@ -73,14 +73,14 @@ static inline void menelaus_update(MenelausState *s)
static inline void menelaus_rtc_start(MenelausState *s)
{
- s->rtc.next =+ qemu_get_clock(rt_clock);
+ s->rtc.next += qemu_get_clock(rt_clock);
qemu_mod_timer(s->rtc.hz_tm, s->rtc.next);
}
static inline void menelaus_rtc_stop(MenelausState *s)
{
qemu_del_timer(s->rtc.hz_tm);
- s->rtc.next =- qemu_get_clock(rt_clock);
+ s->rtc.next -= qemu_get_clock(rt_clock);
if (s->rtc.next < 1)
s->rtc.next = 1;
}