virtio-console: Remove unnecessary braces

Remove unnecessary braces around a case statement.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
This commit is contained in:
Amit Shah 2010-12-10 17:10:43 +05:30
parent cbe77b616c
commit 28eaf46531

View 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;