aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJing Xiangfeng <[email protected]>2020-09-21 03:29:52 +0000
committerDavid S. Miller <[email protected]>2020-09-21 21:51:37 +0000
commitc8c33b80f4e83d3e29623fb08d935fa152f6a3db (patch)
treeeb5d16011e38f34da5aa7dffcc3b6e3d2bd83932 /net/unix/af_unix.c
parentnet: phy: realtek: enable ALDPS to save power for RTL8211F (diff)
downloadkernel-c8c33b80f4e83d3e29623fb08d935fa152f6a3db.tar.gz
kernel-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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
-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;