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>
This commit is contained in:
parent
943d01183c
commit
5777cbba79
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue
Block a user