From: Jing Xiangfeng Date: Mon, 21 Sep 2020 03:29:52 +0000 (+0800) Subject: net: unix: remove redundant assignment to variable 'err' X-Git-Tag: v5.10-rc1~107^2~180 X-Git-Url: https://repo.jachan.dev/linux.git/commitdiff_plain/c8c33b80f4e83d3e29623fb08d935fa152f6a3db 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 Signed-off-by: David S. Miller --- 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;