OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66e2293
)
net: unix: remove redundant assignment to variable 'err'
author
Jing Xiangfeng
<jingxiangfeng@huawei.com>
Mon, 21 Sep 2020 03:29:52 +0000
(11:29 +0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 21 Sep 2020 21:51:37 +0000
(14:51 -0700)
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>
net/unix/af_unix.c
patch
|
blob
|
history
diff --git
a/net/unix/af_unix.c
b/net/unix/af_unix.c
index
92784e5
..
eb82bdc
100644
(file)
--- 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;