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:
parent
cbe77b616c
commit
28eaf46531
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user