diff options
author | Jing Xiangfeng <jingxiangfeng@huawei.com> | 2020-09-21 06:29:52 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-22 00:51:37 +0300 |
commit | c8c33b80f4e83d3e29623fb08d935fa152f6a3db (patch) | |
tree | eb5d16011e38f34da5aa7dffcc3b6e3d2bd83932 | |
parent | 66e22932eb795f12cc78c7592581673049d85a8c (diff) | |
download | linux-c8c33b80f4e83d3e29623fb08d935fa152f6a3db.tar.xz |
net: unix: remove redundant assignment to variable 'err'
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 <jingxiangfeng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/unix/af_unix.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 92784e51ee7d..eb82bdc6cf7c 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -878,7 +878,6 @@ static int unix_autobind(struct socket *sock) if (err) return err; - err = 0; if (u->addr) goto out; |