From: Dan Carpenter Date: Wed, 27 Apr 2016 08:05:28 +0000 (+0300) Subject: tipc: remove an unnecessary NULL check X-Git-Tag: MMI-PSA29.97-13-9~7934^2~174 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b43586576e54609f7970096478cf4113de18a4db;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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: Dan Carpenter Acked-by: Ying Xue Signed-off-by: David S. Miller --- diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c index 79de588c7bd6..0dd02244e21d 100644 --- a/net/tipc/subscr.c +++ b/net/tipc/subscr.c @@ -326,8 +326,7 @@ 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); + tipc_subscrp_subscribe(net, s, subscriber, swap); } /* Handle one request to establish a new subscriber */