All of lore.kernel.org
 help / color / mirror / Atom feed
From: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
To: Stefan Weil <weil@mail.berlios.de>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] virtio-9p: Remove statement without effect (fix warning from cppcheck)
Date: Sun, 08 May 2011 10:17:35 -0700	[thread overview]
Message-ID: <4DC6D02F.6080401@linux.vnet.ibm.com> (raw)
In-Reply-To: <1304799829-19555-1-git-send-email-weil@mail.berlios.de>

On 05/07/2011 01:23 PM, Stefan Weil wrote:
> cppcheck report:
> virtio-9p.c:197: warning: Redundant assignment of "flags" to itself
>
> Cc: Venkateswararao Jujjuri<jvrao@linux.vnet.ibm.com>
> Signed-off-by: Stefan Weil<weil@mail.berlios.de>

Reviewed-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>

BTW, New threading model will change these functions completely.
But in the mean while, we can keep merging these fixes as they come.

Thanks,
JV

> ---
>   hw/9pfs/virtio-9p.c |    1 -
>   1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c
> index ac5a1d0..d31b34a 100644
> --- a/hw/9pfs/virtio-9p.c
> +++ b/hw/9pfs/virtio-9p.c
> @@ -194,7 +194,6 @@ static int v9fs_do_open2(V9fsState *s, char *fullname, uid_t uid, gid_t gid,
>       cred.fc_uid = uid;
>       cred.fc_gid = gid;
>       cred.fc_mode = mode&  07777;
> -    flags = flags;
>       return s->ops->open2(&s->ctx, fullname, flags,&cred);
>   }

  reply	other threads:[~2011-05-08 17:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-07 20:23 [Qemu-devel] [PATCH] virtio-9p: Remove statement without effect (fix warning from cppcheck) Stefan Weil
2011-05-08 17:17 ` Venkateswararao Jujjuri [this message]
2011-06-03 21:39 ` Aurelien Jarno

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=4DC6D02F.6080401@linux.vnet.ibm.com \
    --to=jvrao@linux.vnet.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=weil@mail.berlios.de \
    /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.