]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbevf: fix unused variable warning
authorArnd Bergmann <arnd@arndb.de>
Wed, 28 Feb 2018 23:17:36 +0000 (00:17 +0100)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 12 Mar 2018 18:05:11 +0000 (11:05 -0700)
commit581d82bddd4aa8a0c884c0fbb7586cc378316bfe
tree73629978be1e666e6ae50c22e190cadb334d4476
parent5c703b1d28b09e0b0c61269ba5d5bc9fb07345f4
ixgbevf: fix unused variable warning

The new ixgbevf_set_rx_buffer_len() function causes a harmless warnings
in configurations with large page size:

drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c: In function 'ixgbevf_set_rx_buffer_len':
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c:1758:15: error: unused variable 'max_frame' [-Werror=unused-variable]

This rephrases the code so that the compiler can see the use of that
variable, making it slightly easier to read in the process.

Fixes: 85c3b97d1e7c ("ixgbevf: add support for using order 1 pages to receive large frames")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Acked-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c