From 9678d9501bc5f2e6e06170013dec8667057c3b62 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 25 Apr 2010 18:35:52 +0000 Subject: Remove dead assignments in various common files, spotted by clang analyzer Value stored is never read. Signed-off-by: Blue Swirl --- net/tap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net') diff --git a/net/tap.c b/net/tap.c index 303d69f..0147dab 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) { -- cgit v1.1