OSDN Git Service

escc: fix coding style nit
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 30 Sep 2009 17:43:55 +0000 (19:43 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 30 Sep 2009 18:45:50 +0000 (18:45 +0000)
Put space between = and - assigning a negative number
to avoid confusion with old-style "-="
(which we also have, and needs to be fixed).

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/escc.c

index 17694ed..cb34d7d 100644 (file)
--- a/hw/escc.c
+++ b/hw/escc.c
@@ -869,9 +869,9 @@ static void sunmouse_event(void *opaque,
     ch = dx;
 
     if (ch > 127)
-        ch=127;
+        ch = 127;
     else if (ch < -127)
-        ch=-127;
+        ch = -127;
 
     put_queue(s, ch & 0xff);