qlogic/qed: remove bogus NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 Nov 2015 13:27:16 +0000 (16:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Nov 2015 03:06:13 +0000 (22:06 -0500)
commit8c169c28f40bd78b772c4d95306735c00f8db80d
treeb3243c1681d654bb3d6694530459b0992051c01b
parent7362945aea72fccc9df4f4e7643c971e0a8c33dc
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>
drivers/net/ethernet/qlogic/qed/qed_int.c