diff options
author | Gaurav Singh <gaurav1086@gmail.com> | 2020-06-24 03:55:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-24 06:18:16 +0300 |
commit | 5777cbba79ab041ccc08252abf6ea6bbd1f4c285 (patch) | |
tree | 9253b193ed8248ed858ff8cb0e829b3da9ce2e20 /drivers/net/ethernet/xircom | |
parent | 943d01183c156c7cbe8f8eb5366da47838c285ee (diff) | |
download | linux-5777cbba79ab041ccc08252abf6ea6bbd1f4c285.tar.xz |
xirc2ps_cs: remove dev null check from do_reset().
dev cannot be NULL here since its already being accessed
before. Remove the redundant null check.
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/xircom')
-rw-r--r-- | drivers/net/ethernet/xircom/xirc2ps_cs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/xircom/xirc2ps_cs.c b/drivers/net/ethernet/xircom/xirc2ps_cs.c index 480ab7251515..3e3883ad88b0 100644 --- a/drivers/net/ethernet/xircom/xirc2ps_cs.c +++ b/drivers/net/ethernet/xircom/xirc2ps_cs.c @@ -1473,7 +1473,7 @@ do_reset(struct net_device *dev, int full) unsigned int ioaddr = dev->base_addr; unsigned value; - pr_debug("%s: do_reset(%p,%d)\n", dev? dev->name:"eth?", dev, full); + pr_debug("%s: do_reset(%p,%d)\n", dev->name, dev, full); hardreset(dev); PutByte(XIRCREG_CR, SoftReset); /* set */ |