Patchwork [2/7] virtio-console: Remove unnecessary braces

login
register
mail settings
Submitter Amit Shah
Date Jan. 19, 2011, 12:27 p.m.
Message ID <28eaf465316491884952f855f7bfc9dab597e6fb.1295439749.git.amit.shah@redhat.com>
Download mbox | patch
Permalink /patch/79453/
State New
Headers show

Comments

Amit Shah - Jan. 19, 2011, 12:27 p.m.
Remove unnecessary braces around a case statement.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
 hw/virtio-console.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Patch

diff --git a/hw/virtio-console.c b/hw/virtio-console.c
index d7fe68b..d0b9354 100644
--- a/hw/virtio-console.c
+++ b/hw/virtio-console.c
@@ -48,10 +48,9 @@  static void chr_event(void *opaque, int event)
     VirtConsole *vcon = opaque;
 
     switch (event) {
-    case CHR_EVENT_OPENED: {
+    case CHR_EVENT_OPENED:
         virtio_serial_open(&vcon->port);
         break;
-    }
     case CHR_EVENT_CLOSED:
         virtio_serial_close(&vcon->port);
         break;