From 1963b93c7645bb47e3bab1ee185bfc4d314ed085 Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Fri, 4 Feb 2011 08:20:33 -0200 Subject: [RHEL6 qemu-kvm PATCH 02/27] virtio-console: Remove unnecessary braces RH-Author: Amit Shah Message-id: Patchwork-id: 17703 O-Subject: [RHEL6.1 qemu PATCH v5 02/19] virtio-console: Remove unnecessary braces Bugzilla: 588916 RH-Acked-by: Alon Levy RH-Acked-by: Juan Quintela RH-Acked-by: Jes Sorensen RH-Acked-by: Michael S. Tsirkin Remove unnecessary braces around a case statement. Signed-off-by: Amit Shah (cherry picked from commit 28eaf465316491884952f855f7bfc9dab597e6fb) --- hw/virtio-console.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) Signed-off-by: Eduardo Habkost --- hw/virtio-console.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/hw/virtio-console.c b/hw/virtio-console.c index d7fe68b..d0b9354 100644 --- a/hw/virtio-console.c +++ b/hw/virtio-console.c @@ -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; -- 1.7.3.2