[Intel-wired-lan] [next PATCH S45 03/10] i40evf: remove unnecessary error checking against i40e_shutdown_adminq
Bowers, AndrewX
andrewx.bowers at intel.com
Thu Sep 8 16:59:25 UTC 2016
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Bimmy Pujari
> Sent: Tuesday, September 06, 2016 6:05 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S45 03/10] i40evf: remove
> unnecessary error checking against i40e_shutdown_adminq
>
> From: Lihong Yang <lihong.yang at intel.com>
>
> The i40e_shutdown_adminq function never returns failure. There is no need
> to check the non-0 return value. Clean up the unnecessary error checking
> and warning against it.
>
> Signed-off-by: Lihong Yang <lihong.yang at intel.com>
> Change-ID: Ibb616f09cfb93bd1a872ebf3241a15fb8354b31b
> ---
> Testing Hints:
> Found by static code analysis. Check by code inspection.
>
> drivers/net/ethernet/intel/i40evf/i40evf_main.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list