xirc2ps_cs: remove dev null check from do_reset().
authorGaurav Singh <gaurav1086@gmail.com>
Wed, 24 Jun 2020 00:55:45 +0000 (20:55 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2020 03:18:16 +0000 (20:18 -0700)
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>
drivers/net/ethernet/xircom/xirc2ps_cs.c

index 480ab72515152a64ac70cbcbd7e13bbd4b7b0dc6..3e3883ad88b080578ab450c992c0f9af4318ba98 100644 (file)
@@ -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 */