qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Amit Shah <amit.shah@redhat.com>
To: qemu list <qemu-devel@nongnu.org>
Cc: Amit Shah <amit.shah@redhat.com>, Paul Brook <paul@codesourcery.com>
Subject: [Qemu-devel] [PATCH v3 2/4] virtio-console: Remove unnecessary braces
Date: Tue, 11 Jan 2011 15:03:18 +0530	[thread overview]
Message-ID: <cf6faa9e2a27822da549011042c101029167d38c.1294738032.git.amit.shah@redhat.com> (raw)
In-Reply-To: <cover.1294738032.git.amit.shah@redhat.com>
In-Reply-To: <cover.1294738032.git.amit.shah@redhat.com>

Remove unnecessary braces around a case statement.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
 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.4

  parent reply	other threads:[~2011-01-11  9:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-11  9:33 [Qemu-devel] [PATCH v3 0/4] virtio-serial: Trivial fixes, don't copy buffers to host Amit Shah
2011-01-11  9:33 ` [Qemu-devel] [PATCH v3 1/4] virtio-console: Factor out common init between console and generic ports Amit Shah
2011-01-11  9:33 ` Amit Shah [this message]
2011-01-11  9:33 ` [Qemu-devel] [PATCH v3 3/4] virtio-serial-bus: separate out discard logic in a separate function Amit Shah
2011-01-11  9:33 ` [Qemu-devel] [PATCH v3 4/4] virtio-serial: Don't copy over guest buffer to host Amit Shah

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cf6faa9e2a27822da549011042c101029167d38c.1294738032.git.amit.shah@redhat.com \
    --to=amit.shah@redhat.com \
    --cc=paul@codesourcery.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).