diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-03-01 00:17:36 +0100 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2018-03-12 11:05:11 -0700 |
commit | 954b54dea0ebfd2ead48e6bb12a165025227f4b3 (patch) | |
tree | 73629978be1e666e6ae50c22e190cadb334d4476 /drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | |
parent | ixgbe: Add receive length error counter (diff) | |
download | linux-dev-954b54dea0ebfd2ead48e6bb12a165025227f4b3.tar.xz linux-dev-954b54dea0ebfd2ead48e6bb12a165025227f4b3.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c')
0 files changed, 0 insertions, 0 deletions