Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49d28b56 authored by Woojung.Huh@microchip.com's avatar Woojung.Huh@microchip.com Committed by David S. Miller
Browse files

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: default avatarWoojung Huh <woojung.huh@microchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 366f02d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}