summaryrefslogtreecommitdiff
path: root/net/unix
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2019-10-09 20:43:47 -0700
committerDavid S. Miller <davem@davemloft.net>2019-10-11 20:40:18 -0700
commit262ce0af81616b4be520ea7050ec1e31b80b5ab1 (patch)
tree2904b893e8efe420c915a7d3b7717a5e4ca3a319 /net/unix
parente001d28eeeff9d9906f2b2961cb3351227ad231a (diff)
af_unix: __unix_find_socket_byname() cleanup
Remove pointless return variable dance. Appears vestigial from when the function did locking as seen in unix_find_socket_byinode(), but locking is handled in unix_find_socket_byname() for __unix_find_socket_byname(). Signed-off-by: Vito Caputo <vcaputo@pengaru.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix')
-rw-r--r--net/unix/af_unix.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 67e87db5877f..c853ad0875f4 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -284,11 +284,9 @@ static struct sock *__unix_find_socket_byname(struct net *net,
if (u->addr->len == len &&
!memcmp(u->addr->name, sunname, len))
- goto found;
+ return s;
}
- s = NULL;
-found:
- return s;
+ return NULL;
}
static inline struct sock *unix_find_socket_byname(struct net *net,