Merge "net: sockev: code cleanup"

This commit is contained in:
Linux Build Service Account 2018-07-11 07:09:25 -07:00 committed by Gerrit - the friendly Code Review server
commit cd536e63e3

View file

@ -74,7 +74,7 @@ static int sockev_client_cb(struct notifier_block *nb,
sock = (struct socket *)data;
if (socknlmsgsk == 0)
goto done;
if ((socknlmsgsk == NULL) || (sock == NULL) || (sock->sk == NULL))
if ((!socknlmsgsk) || (!sock) || (!sock->sk))
goto done;
if (sock->sk->sk_family != AF_INET && sock->sk->sk_family != AF_INET6)