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:
parent
79d9b62ad8
commit
a298807b8d
@ -416,7 +416,7 @@ static int qmi_wwan_resume(struct usb_interface *intf)
|
||||
if (ret < 0)
|
||||
goto err;
|
||||
ret = usbnet_resume(intf);
|
||||
if (ret < 0 && callsub && info->subdriver->suspend)
|
||||
if (ret < 0 && callsub)
|
||||
info->subdriver->suspend(intf, PMSG_SUSPEND);
|
||||
err:
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user