mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
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
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue