virtio-console: Remove unnecessary braces
authorAmit Shah <amit.shah@redhat.com>
Fri, 10 Dec 2010 11:40:43 +0000 (17:10 +0530)
committerAmit Shah <amit.shah@redhat.com>
Wed, 19 Jan 2011 12:02:29 +0000 (17:32 +0530)
Remove unnecessary braces around a case statement.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
hw/virtio-console.c

index d7fe68b..d0b9354 100644 (file)
@@ -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;