Commit c8c33b80 authored by Jing Xiangfeng's avatar Jing Xiangfeng Committed by David S. Miller

net: unix: remove redundant assignment to variable 'err'

After commit 37ab4fa7 ("net: unix: allow bind to fail on mutex lock"),
the assignment to err is redundant. So remove it.
Signed-off-by: default avatarJing Xiangfeng <jingxiangfeng@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 66e22932
...@@ -878,7 +878,6 @@ static int unix_autobind(struct socket *sock) ...@@ -878,7 +878,6 @@ static int unix_autobind(struct socket *sock)
if (err) if (err)
return err; return err;
err = 0;
if (u->addr) if (u->addr)
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment