mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-01 20:14:08 +00:00
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>
This commit is contained in:
parent
e001d28eee
commit
262ce0af81
1 changed files with 2 additions and 4 deletions
|
@ -284,11 +284,9 @@ static struct sock *__unix_find_socket_byname(struct net *net,
|
||||||
|
|
||||||
if (u->addr->len == len &&
|
if (u->addr->len == len &&
|
||||||
!memcmp(u->addr->name, sunname, len))
|
!memcmp(u->addr->name, sunname, len))
|
||||||
goto found;
|
return s;
|
||||||
}
|
}
|
||||||
s = NULL;
|
return NULL;
|
||||||
found:
|
|
||||||
return s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct sock *unix_find_socket_byname(struct net *net,
|
static inline struct sock *unix_find_socket_byname(struct net *net,
|
||||||
|
|
Loading…
Add table
Reference in a new issue