]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: unix: remove redundant assignment to variable 'err'
authorJing Xiangfeng <jingxiangfeng@huawei.com>
Mon, 21 Sep 2020 03:29:52 +0000 (11:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Sep 2020 21:51:37 +0000 (14:51 -0700)
After commit b9d4f108bed6 ("net: unix: allow bind to fail on mutex lock"),
the assignment to err is redundant. So remove it.

Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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;