Arnd Bergmann 954b54dea0 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: f15c5ba5b6cd ("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>
2018-03-12 11:05:11 -07:00
..
2018-02-27 11:01:36 -05:00
2018-03-09 11:20:59 -05:00
2018-03-09 13:00:08 -05:00
2018-01-09 16:34:35 +01:00
2018-03-02 10:01:25 +01:00
2018-02-27 11:01:36 -05:00
2018-02-27 11:01:37 -05:00
2018-02-27 10:37:14 -05:00
2018-02-13 10:36:09 -05:00
2018-02-11 14:34:03 -08:00
2017-12-08 14:22:59 -05:00
2018-03-04 13:04:22 -05:00
2018-02-27 11:01:37 -05:00