summaryrefslogtreecommitdiffstats
path: root/net/unix
diff options
context:
space:
mode:
authorJing Xiangfeng <jingxiangfeng@huawei.com>2020-09-21 05:29:52 +0200
committerDavid S. Miller <davem@davemloft.net>2020-09-21 23:51:37 +0200
commitc8c33b80f4e83d3e29623fb08d935fa152f6a3db (patch)
treeeb5d16011e38f34da5aa7dffcc3b6e3d2bd83932 /net/unix
parentnet: phy: realtek: enable ALDPS to save power for RTL8211F (diff)
downloadlinux-c8c33b80f4e83d3e29623fb08d935fa152f6a3db.tar.xz
linux-c8c33b80f4e83d3e29623fb08d935fa152f6a3db.zip
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>
Diffstat (limited to 'net/unix')
-rw-r--r--net/unix/af_unix.c1
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;