diff options
author | Steve Glendinning <steve.glendinning@shawell.net> | 2012-05-03 20:57:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-07 23:43:56 -0400 |
commit | 4f94a929e4adb0d0ed78d448ff68fe870163c575 (patch) | |
tree | e9c1afc53b91b8e27fad9d5c570f3256da194ce6 /drivers/net/usb/smsc75xx.c | |
parent | 7749622d7fc958ecfbec67bc76c9e0d861a872d8 (diff) |
smsc75xx: eliminate unnecessary phy register read
Only a write is necessary to clear the interrupt status, and we
don't use the value from the preceding read operation. This
patch eliminates the unnecessary read.
Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/smsc75xx.c')
-rw-r--r-- | drivers/net/usb/smsc75xx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/usb/smsc75xx.c b/drivers/net/usb/smsc75xx.c index ecab87b85728..72b62b51c46f 100644 --- a/drivers/net/usb/smsc75xx.c +++ b/drivers/net/usb/smsc75xx.c | |||
@@ -508,9 +508,7 @@ static int smsc75xx_link_reset(struct usbnet *dev) | |||
508 | u16 lcladv, rmtadv; | 508 | u16 lcladv, rmtadv; |
509 | int ret; | 509 | int ret; |
510 | 510 | ||
511 | /* read and write to clear phy interrupt status */ | 511 | /* write to clear phy interrupt status */ |
512 | ret = smsc75xx_mdio_read(dev->net, mii->phy_id, PHY_INT_SRC); | ||
513 | check_warn_return(ret, "Error reading PHY_INT_SRC"); | ||
514 | smsc75xx_mdio_write(dev->net, mii->phy_id, PHY_INT_SRC, | 512 | smsc75xx_mdio_write(dev->net, mii->phy_id, PHY_INT_SRC, |
515 | PHY_INT_SRC_CLEAR_ALL); | 513 | PHY_INT_SRC_CLEAR_ALL); |
516 | 514 | ||