qlogic/qed: remove bogus NULL check
PATCH 1/1 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 <[email protected]>
drivers/net/ethernet/qlogic/qed/qed_int.c +0 -5
@@ -251,11 +251,6 @@ void qed_int_sp_dpc(unsigned long hwfn_cookie)int arr_size;u16 rc =0 ; -if (!p_hwfn) { -DP_ERR (p_hwfn->cdev,"DPC called - no hwfn!\n" ); -return ; - } -if (!p_hwfn->p_sp_sb) {DP_ERR (p_hwfn->cdev,"DPC called - no p_sp_sb\n" );return ;
Quoted 4 lines
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 <[email protected]>
Our current interrupt handling logic is being uber-defensive. Thanks.
Acked-by Yuval Mintz <[email protected]>
From: Dan Carpenter <[email protected]>
Date: Wed, 4 Nov 2015 16:27:16 +0300
Quoted 5 lines
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 <[email protected]>
Applied.