diff options
author | Stefan Weil <weil@mail.berlios.de> | 2011-05-07 22:23:49 +0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-06-03 23:39:28 +0200 |
commit | 9694b5d11aad2f37c91fcb5c66644675597056a2 (patch) | |
tree | b2213169351e5c64139d57698662f34096fade44 /hw/9pfs/virtio-9p.c | |
parent | 1f2e98b62d62205de9d52e81aca78e78712af973 (diff) | |
download | qemu-9694b5d11aad2f37c91fcb5c66644675597056a2.zip |
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 <weil@mail.berlios.de>
Reviewed-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/9pfs/virtio-9p.c')
-rw-r--r-- | 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 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); } |