twl92230: fix old style increment/decrement usage
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 30 Sep 2009 17:44:11 +0000 (19:44 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 30 Sep 2009 18:45:50 +0000 (18:45 +0000)
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>
hw/twl92230.c

index b15a8bf..68fab88 100644 (file)
@@ -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;
 }