sctp: remove a redundant NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 13 Jan 2014 13:46:08 +0000 (16:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2014 02:18:22 +0000 (18:18 -0800)
commit0e864b21e5080bc3f178a4729bc4f7bca77188bc
tree41d8a3e04e9e2e496ed49ade3f0344985e001ba7
parent963a185539a789cdfda7ee9e501be92235a22680
sctp: remove a redundant NULL check

It confuses Smatch when we check "sinit" for NULL and then non-NULL and
that causes a false positive warning later.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c