diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-07-08 14:43:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-08 12:40:58 -0700 |
commit | 0287f9ed1693fff26a2d568a9d3f74c2b198540c (patch) | |
tree | ccdb949949b1f8e94ff047b0d4047bbe6218777a /lib/show_mem.c | |
parent | 05cfee98c8a5187c41978967d34ab5ef0353c0f8 (diff) | |
download | linux-0287f9ed1693fff26a2d568a9d3f74c2b198540c.tar.bz2 |
gve: fix unused variable/label warnings
On unusual page sizes, we get harmless warnings:
drivers/net/ethernet/google/gve/gve_rx.c:283:6: error: unused variable 'pagecount' [-Werror,-Wunused-variable]
drivers/net/ethernet/google/gve/gve_rx.c:336:1: error: unused label 'have_skb' [-Werror,-Wunused-label]
Change the preprocessor #if to regular if() to avoid this.
Fixes: f5cedc84a30d ("gve: Add transmit and receive support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/show_mem.c')
0 files changed, 0 insertions, 0 deletions