diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-04-27 11:05:28 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-28 23:54:12 +0300 |
commit | b43586576e54609f7970096478cf4113de18a4db (patch) | |
tree | 7f72b93db5130316fb3e8ad8398b09e228788944 /net/tipc | |
parent | 6b87663fbe4a366e558d6566b3e6b6bc227da5a1 (diff) | |
download | linux-b43586576e54609f7970096478cf4113de18a4db.tar.xz |
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@oracle.com>
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/subscr.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 */ |