drivers: net: xen-netfront: Fixed W=1 set but unused warnings
authorAndrew Lunn <andrew@lunn.ch>
Sat, 31 Oct 2020 18:04:35 +0000 (19:04 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Nov 2020 00:03:12 +0000 (16:03 -0800)
commit8ed7ec1386b646130d80d017ecd4716f866ea570
treecbabacb1c6991953ef82dbfeb192fbb1e33d017b
parentce3f952104e0266986d8a4e6b11d8f979e18fb3e
drivers: net: xen-netfront: Fixed W=1 set but unused warnings

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 this file has lots of checkpatch warnings.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20201031180435.1081127-1-andrew@lunn.ch
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/xen-netfront.c