[Intel-wired-lan] [PATCH] ixgbevf: remove redundant initialization of variable 'dma'.
Bowers, AndrewX
andrewx.bowers at intel.com
Tue Feb 6 22:38:16 UTC 2018
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Colin King
> Sent: Thursday, February 1, 2018 10:36 AM
> 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] ixgbevf: remove redundant initialization of
> variable 'dma'.
>
> From: Colin Ian King <colin.king at canonical.com>
>
> Variable dma is initialized with a value that is never read, later on it is re-
> assigned a new value, hence the initialization is redundant and can be
> removed.
>
> Cleans up clang warning:
> drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c:584:13: warning: Value
> stored to 'dma' during its initialization is never read
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
> drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list