diff options
| author | Arnd Bergmann <[email protected]> | 2017-04-19 19:29:48 +0200 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2017-04-30 05:01:35 -0700 |
| commit | 3dfc3eb581645bc503c7940861f494a0d75615da (patch) | |
| tree | 97b76846462a0cc7be4641d240c634aa4cf6c4a7 /tools/perf/scripts/python | |
| parent | 283aeafe6bf06af48068478eaf332f7a227e9af4 (diff) | |
i40evf: hide unused variable
On architectures with larger pages, we get a warning about an unused variable:
drivers/net/ethernet/intel/i40evf/i40evf_main.c: In function 'i40evf_configure_rx':
drivers/net/ethernet/intel/i40evf/i40evf_main.c:690:21: error: unused variable 'netdev' [-Werror=unused-variable]
This moves the declaration into the #ifdef to avoid the warning.
Fixes: dab86afdbbd1 ("i40e/i40evf: Change the way we limit the maximum frame size for Rx")
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Jacob Keller <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions