summaryrefslogtreecommitdiff
path: root/net/tap.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-04-25 18:35:52 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-04-25 18:35:52 +0000
commit9678d9501bc5f2e6e06170013dec8667057c3b62 (patch)
tree98a3d703b5db9b598a639fa672bbe159a85b07c4 /net/tap.c
parentd4c4e6fdc7f5077fba3446f6e650eb94d07a0be5 (diff)
downloadqemu-9678d9501bc5f2e6e06170013dec8667057c3b62.tar.gz
qemu-9678d9501bc5f2e6e06170013dec8667057c3b62.tar.bz2
qemu-9678d9501bc5f2e6e06170013dec8667057c3b62.zip
Remove dead assignments in various common files, spotted by clang analyzer
Value stored is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'net/tap.c')
-rw-r--r--net/tap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tap.c b/net/tap.c
index 303d69f5ab..0147dabc15 100644
--- a/net/tap.c
+++ b/net/tap.c
@@ -346,7 +346,7 @@ static int launch_script(const char *setup_script, const char *ifname, int fd)
parg = args;
*parg++ = (char *)setup_script;
*parg++ = (char *)ifname;
- *parg++ = NULL;
+ *parg = NULL;
execv(setup_script, args);
_exit(1);
} else if (pid > 0) {