[Intel-wired-lan] [PATCH] i40evf: remove redundant null check on key

Bowers, AndrewX andrewx.bowers at intel.com
Thu Jun 8 18:03:42 UTC 2017


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Colin King
> Sent: Tuesday, June 6, 2017 4:54 PM
> To: Kirsher, Jeffrey T <jeffrey.t.kirsher at intel.com>; intel-wired-
> lan at lists.osuosl.org; netdev at vger.kernel.org
> Cc: kernel-janitors at vger.kernel.org; linux-kernel at vger.kernel.org
> Subject: [Intel-wired-lan] [PATCH] i40evf: remove redundant null check on
> key
> 
> From: Colin Ian King <colin.king at canonical.com>
> 
> key has previously been null checked so the subsequent null check is
> redundant as key can never be null at that point, so remove it.
> 
> Detected by CoverityScan, CID#1357164 ("Logically dead code")
> 
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list