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

After commit 37ab4fa784 ("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>
This commit is contained in:
Jing Xiangfeng 2020-09-21 11:29:52 +08:00 committed by David S. Miller
parent 66e22932eb
commit c8c33b80f4
1 changed files with 0 additions and 1 deletions

View File

@ -878,7 +878,6 @@ static int unix_autobind(struct socket *sock)
if (err)
return err;
err = 0;
if (u->addr)
goto out;