Commit a298807b authored by Bjørn Mork's avatar Bjørn Mork Committed by David S. Miller

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

Reported-by: default avatarOliver Neukum <oneukum@suse.de>
Signed-off-by: default avatarBjørn Mork <bjorn@mork.no>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 79d9b62a
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment