Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4358657 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

tipc: remove an unnecessary NULL check



This is never called with a NULL "buf" and anyway, we dereference 's' on
the lines before so it would Oops before we reach the check.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarYing Xue <ying.xue@windriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6b87663f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -326,7 +326,6 @@ static void tipc_subscrb_rcv_cb(struct net *net, int conid,
		return tipc_subscrp_cancel(s, subscriber);
	}

	if (s)
	tipc_subscrp_subscribe(net, s, subscriber, swap);
}