]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbevf: remove redundant initialization of variable 'dma'
authorColin Ian King <colin.king@canonical.com>
Thu, 1 Feb 2018 18:35:39 +0000 (18:35 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 26 Feb 2018 17:38:50 +0000 (09:38 -0800)
commit3c4f4de8fe7e5e67f834afd530d66406a9fc31f9
tree2da181c86bc73ef44eb533d028d51376b2b881fe
parentf573c79c714aa4b324bc8c6c9b6e6c9d2a7967ab
ixgbevf: remove redundant initialization of variable 'dma'

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@canonical.com>
Acked-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c