net: cdc_mbim: 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
a298807b8d
commit
c37ac9b22b
|
@ -410,7 +410,7 @@ static int cdc_mbim_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