From: Michael S. Tsirkin Date: Wed, 30 Sep 2009 17:44:11 +0000 (+0200) Subject: twl92230: fix old style increment/decrement usage X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~10422 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bdd7e1bc6f65c42a43f6177c46b95f87398b5411;p=sdk%2Femulator%2Fqemu.git 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 Signed-off-by: Blue Swirl --- diff --git a/hw/twl92230.c b/hw/twl92230.c index b15a8bf..68fab88 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; }