All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] Re: [PATCH 14/15] Use gcc warning flag -Wempty-body, fix warnings
Date: Sun, 5 Sep 2010 20:54:56 +0300	[thread overview]
Message-ID: <20100905175456.GA24336@redhat.com> (raw)
In-Reply-To: <AANLkTin5EdtOqVLiptMQD51HW6ei2uTmhhYwkngvGcy=@mail.gmail.com>

On Sun, Sep 05, 2010 at 03:07:23PM +0000, Blue Swirl wrote:
> diff --git a/hw/pxa2xx.c b/hw/pxa2xx.c
> index 88f61c0..6e04645 100644
> --- a/hw/pxa2xx.c
> +++ b/hw/pxa2xx.c
> @@ -1877,8 +1877,9 @@ static void pxa2xx_fir_write(void *opaque,
> target_phys_addr_t addr,
>          s->control[0] = value;
>          if (!(value & (1 << 4)))			/* RXE */
>              s->rx_len = s->rx_start = 0;
> -        if (!(value & (1 << 3)))			/* TXE */
> -            /* Nop */;
> +        if (!(value & (1 << 3))) {                      /* TXE */
> +            /* Nop */
> +        }

Should we change the surrounding code to use {} to keep it consistent?
It's annoying to have {} in one place only.

>          s->enable = value & 1;				/* ITR */
>          if (!s->enable)
>              s->status[0] = 0;

  reply	other threads:[~2010-09-05 18:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-05 15:07 [Qemu-devel] [PATCH 14/15] Use gcc warning flag -Wempty-body, fix warnings Blue Swirl
2010-09-05 17:54 ` Michael S. Tsirkin [this message]
2010-09-05 19:24   ` [Qemu-devel] " Blue Swirl

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=20100905175456.GA24336@redhat.com \
    --to=mst@redhat.com \
    --cc=blauwirbel@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.