Re: [PATCH net-next] drivers: net: xen-netfront: Fixed W=1 set but unused warnings

2020-11-02 Thread Jakub Kicinski
On Sat, 31 Oct 2020 19:04:35 +0100 Andrew Lunn wrote: > drivers/net/xen-netfront.c:2416:16: warning: variable ‘target’ set but not > used [-Wunused-but-set-variable] > 2416 | unsigned long target; > > Remove target and just discard the return value from simple_strtoul(). > > This patch does gi

[PATCH net-next] drivers: net: xen-netfront: Fixed W=1 set but unused warnings

2020-10-31 Thread Andrew Lunn
drivers/net/xen-netfront.c:2416:16: warning: variable ‘target’ set but not used [-Wunused-but-set-variable] 2416 | unsigned long target; Remove target and just discard the return value from simple_strtoul(). This patch does give a checkpatch warning, but the warning was there before anyway, as