projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f2e98b
)
virtio-9p: Remove statement without effect (fix warning from cppcheck)
author
Stefan Weil
<weil@mail.berlios.de>
Sat, 7 May 2011 20:23:49 +0000
(22:23 +0200)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Fri, 3 Jun 2011 21:39:28 +0000
(23:39 +0200)
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>
hw/9pfs/virtio-9p.c
patch
|
blob
|
history
diff --git
a/hw/9pfs/virtio-9p.c
b/hw/9pfs/virtio-9p.c
index b5fc52b3eb49108b31e7d11ce886df64c27217fc..a8a0a9766eb7f187cffa733148df472227c47cc8 100644
(file)
--- 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);
}