Commit 262ce0af authored by Vito Caputo's avatar Vito Caputo Committed by David S. Miller
Browse files

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: default avatarVito Caputo <vcaputo@pengaru.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e001d28e
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -284,12 +284,10 @@ static struct sock *__unix_find_socket_byname(struct net *net,

		if (u->addr->len == len &&
		    !memcmp(u->addr->name, sunname, len))
			goto found;
	}
	s = NULL;
found:
			return s;
	}
	return NULL;
}

static inline struct sock *unix_find_socket_byname(struct net *net,
						   struct sockaddr_un *sunname,