From: Stefan Weil Date: Sat, 7 May 2011 20:23:49 +0000 (+0200) Subject: virtio-9p: Remove statement without effect (fix warning from cppcheck) X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9694b5d11aad2f37c91fcb5c66644675597056a2;p=qemu.git virtio-9p: Remove statement without effect (fix warning from cppcheck) cppcheck report: virtio-9p.c:197: warning: Redundant assignment of "flags" to itself Signed-off-by: Stefan Weil Reviewed-by: Venkateswararao Jujjuri Signed-off-by: Aurelien Jarno --- diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index b5fc52b3eb..a8a0a9766e 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); }