mirror of https://gitee.com/openkylin/qemu.git
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;
|
VirtConsole *vcon = opaque;
|
||||||
|
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case CHR_EVENT_OPENED: {
|
case CHR_EVENT_OPENED:
|
||||||
virtio_serial_open(&vcon->port);
|
virtio_serial_open(&vcon->port);
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
case CHR_EVENT_CLOSED:
|
case CHR_EVENT_CLOSED:
|
||||||
virtio_serial_close(&vcon->port);
|
virtio_serial_close(&vcon->port);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue