]> Git Repo - linux.git/commitdiff
net: unix: remove redundant assignment to variable 'err'
authorJing Xiangfeng <[email protected]>
Mon, 21 Sep 2020 03:29:52 +0000 (11:29 +0800)
committerDavid S. Miller <[email protected]>
Mon, 21 Sep 2020 21:51:37 +0000 (14:51 -0700)
After commit 37ab4fa7844a ("net: unix: allow bind to fail on mutex lock"),
the assignment to err is redundant. So remove it.

Signed-off-by: Jing Xiangfeng <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/unix/af_unix.c

index 92784e51ee7d978a6c5b1ccd93814756189be028..eb82bdc6cf7cd05ccb8d79a01cab1d3c01d612c9 100644 (file)
@@ -878,7 +878,6 @@ static int unix_autobind(struct socket *sock)
        if (err)
                return err;
 
-       err = 0;
        if (u->addr)
                goto out;
 
This page took 0.049137 seconds and 4 git commands to generate.