Patchwork event: trivial coding style fixes.

login
register
mail settings
Submitter Brad Hards
Date April 9, 2011, 2:11 a.m.
Message ID <201104091211.36963.bradh@frogmouth.net>
Download mbox | patch
Permalink /patch/90445/
State New
Headers show

Comments

Brad Hards - April 9, 2011, 2:11 a.m.
Signed-off-by: Brad Hards <bradh@frogmouth.net>
---
 input.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
Stefan Hajnoczi - April 9, 2011, 11:21 a.m.
On Sat, Apr 09, 2011 at 12:11:36PM +1000, Brad Hards wrote:
> 
> Signed-off-by: Brad Hards <bradh@frogmouth.net>
> ---
>  input.c |   14 +++++++-------
>  1 files changed, 7 insertions(+), 7 deletions(-)

The rest of the file follows the coding style, so I guess this change is
reasonable.

Merged into the trivial patches tree:
git://repo.or.cz/qemu/stefanha.git trivial-patches

A pull request will be sent to merge this into qemu.git.  For more
information, see http://wiki.qemu.org/Contribute/TrivialPatches.

Stefan

Patch

diff --git a/input.c b/input.c
index ec05548..5664d3a 100644
--- a/input.c
+++ b/input.c
@@ -161,15 +161,15 @@  void kbd_mouse_event(int dx, int dy, int dz, int buttons_state)
 
     if (mouse_event) {
         if (graphic_rotate) {
-            if (entry->qemu_put_mouse_event_absolute)
+            if (entry->qemu_put_mouse_event_absolute) {
                 width = 0x7fff;
-            else
+            } else {
                 width = graphic_width - 1;
-            mouse_event(mouse_event_opaque,
-                        width - dy, dx, dz, buttons_state);
-        } else
-            mouse_event(mouse_event_opaque,
-                        dx, dy, dz, buttons_state);
+            }
+            mouse_event(mouse_event_opaque, width - dy, dx, dz, buttons_state);
+        } else {
+            mouse_event(mouse_event_opaque, dx, dy, dz, buttons_state);
+        }
     }
 }