> From: Dan Carpenter [mailto:dan.carpenter@xxxxxxxxxx] > Sent: 2016年4月27日 16:05 > To: Jon Maloy > Cc: Xue, Ying; David S. Miller; netdev@xxxxxxxxxxxxxxx; tipc- > discussion@xxxxxxxxxxxxxxxxxxxxx; kernel-janitors@xxxxxxxxxxxxxxx > Subject: [patch] 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 <dan.carpenter@xxxxxxxxxx> Acked-by: Ying Xue <ying.xue@xxxxxxxxxxxxx> > > diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c index 79de588..0dd0224 > 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 */ ?韬{.n?????%??檩??w?{.n???罐??+h???n?■???h?璀?{?夸z罐?+€?zf"?????i?????_璁?:+v??撸?