2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-02 10:43:57 +08:00

net: qmi_wwan: no need to check for resume if suspend exists

Reported-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Bjørn Mork 2013-11-01 14:18:54 +01:00 committed by David S. Miller
parent 79d9b62ad8
commit a298807b8d

View File

@ -416,7 +416,7 @@ static int qmi_wwan_resume(struct usb_interface *intf)
if (ret < 0) if (ret < 0)
goto err; goto err;
ret = usbnet_resume(intf); ret = usbnet_resume(intf);
if (ret < 0 && callsub && info->subdriver->suspend) if (ret < 0 && callsub)
info->subdriver->suspend(intf, PMSG_SUSPEND); info->subdriver->suspend(intf, PMSG_SUSPEND);
err: err:
return ret; return ret;