Skip to content

Commit

Permalink
xirc2ps_cs: remove dev null check from do_reset().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gaurav Singh authored and David S. Miller committed Jun 24, 2020
1 parent 943d011 commit 5777cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/xircom/xirc2ps_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 5777cbb

Please sign in to comment.