From 9694b5d11aad2f37c91fcb5c66644675597056a2 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 7 May 2011 22:23:49 +0200 Subject: 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 --- hw/9pfs/virtio-9p.c | 1 - 1 file changed, 1 deletion(-) (limited to 'hw/9pfs/virtio-9p.c') 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); } -- cgit v1.2.3