summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/lan78xx.c
diff options
context:
space:
mode:
authorWoojung.Huh@microchip.com <Woojung.Huh@microchip.com>2015-09-25 21:13:48 +0000
committerDavid S. Miller <davem@davemloft.net>2015-09-28 22:28:53 -0700
commit49d28b5642444d82bd23b9333785480d265420d1 (patch)
tree8653025c6ebe1b0502d716d40f65ffa1d014ab49 /drivers/net/usb/lan78xx.c
parent366f02d873575ccbcdc5f6d90698dbbe4f80f134 (diff)
downloadtalos-obmc-linux-49d28b5642444d82bd23b9333785480d265420d1.tar.gz
talos-obmc-linux-49d28b5642444d82bd23b9333785480d265420d1.zip
lan78xx: Return 0 when lan78xx_suspend() has no error.
lan78xx_suspend() may return non-zero from lan78xx_write_reg() in some scenario. Fix to return 0 when lan78xx_suspend() has no error. Signed-off-by: Woojung Huh <woojung.huh@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/lan78xx.c')
-rw-r--r--drivers/net/usb/lan78xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c
index d2a5f3f88b13..226668ead0d8 100644
--- a/drivers/net/usb/lan78xx.c
+++ b/drivers/net/usb/lan78xx.c
@@ -3204,7 +3204,6 @@ int lan78xx_suspend(struct usb_interface *intf, pm_message_t message)
int ret;
int event;
- ret = 0;
event = message.event;
if (!dev->suspend_count++) {
@@ -3286,6 +3285,7 @@ int lan78xx_suspend(struct usb_interface *intf, pm_message_t message)
}
}
+ ret = 0;
out:
return ret;
}
OpenPOWER on IntegriCloud