diff options
author | Andrew Lunn <andrew@lunn.ch> | 2020-10-31 03:54:45 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-03 02:50:04 +0300 |
commit | 7812e10511ce66b0f7c41d33c66c7e0db75a1016 (patch) | |
tree | 5a8b2ca4b753b24520148c3c6c85cdeba3289fcf /drivers/net/ethernet/davicom/dm9000.c | |
parent | bbbc7aa45eefd4ef7ffbd5ee3bb49bd8b68a2213 (diff) | |
download | linux-7812e10511ce66b0f7c41d33c66c7e0db75a1016.tar.xz |
drivers: net: tulip: Fix set but not used with W=1
When compiled for platforms other than __i386__ or __x86_64__:
drivers/net/ethernet/dec/tulip/tulip_core.c: In function ‘tulip_init_one’:
drivers/net/ethernet/dec/tulip/tulip_core.c:1296:13: warning: variable ‘last_irq’ set but not used [-Wunused-but-set-variable]
1296 | static int last_irq;
Add more #if defined() to totally remove the code when not needed.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20201031005445.1060112-1-andrew@lunn.ch
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/davicom/dm9000.c')
0 files changed, 0 insertions, 0 deletions