]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qlogic/qed: remove bogus NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 Nov 2015 13:27:16 +0000 (16:27 +0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 19:28:57 +0000 (12:28 -0700)
commitbe0938bdc813af5592f4d5ac93787654db158d44
tree36b55b0d7586dd8af70906dc9121471b19cf3249
parentbff456176080c37b68933c212f0884c9fafcb3c6
qlogic/qed: remove bogus NULL check

We check if "p_hwfn" is NULL and then dereference it in the error
handling code.  I read the code and it isn't NULL so let's remove the
check.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Orabug: 23732603
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_int.c