ipx: Remove spurious NULL checking in ipx_ioctl().
authorDavid S. Miller <davem@davemloft.net>
Sat, 19 May 2012 04:51:04 +0000 (00:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 May 2012 04:51:04 +0000 (00:51 -0400)
commit32e9072b92a1c556a303d8d0e0d64feb667e601d
tree0d9e1b50ea9e7fed9cf43dad1261c82c49838c70
parent72e843bb09d4533208aa5573861a983c46914019
ipx: Remove spurious NULL checking in ipx_ioctl().

We already unconditionally dereference 'sk' via lock_sock(sk) earlier
in this function, and our caller (sock_do_ioctl()) makes takes similar
liberties.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipx/af_ipx.c