From: Bjørn Mork Date: Fri, 1 Nov 2013 13:18:55 +0000 (+0100) Subject: net: cdc_mbim: no need to check for resume if suspend exists X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c37ac9b22b6732c0c9dc17076ebe84e841d4eb16;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net: cdc_mbim: no need to check for resume if suspend exists Reported-by: Oliver Neukum Signed-off-by: Bjørn Mork Signed-off-by: David S. Miller --- diff --git a/drivers/net/usb/cdc_mbim.c b/drivers/net/usb/cdc_mbim.c index fbfd67fe6a9a..347e6b926735 100644 --- a/drivers/net/usb/cdc_mbim.c +++ b/drivers/net/usb/cdc_mbim.c @@ -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;