From: Bjørn Mork Date: Fri, 1 Nov 2013 13:18:54 +0000 (+0100) Subject: net: qmi_wwan: no need to check for resume if suspend exists X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a298807b8dbf8b369932f396a6b9984283e25f75;p=linux-beck.git net: qmi_wwan: 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/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c index 5dd0d85e6335..23bdd5b9274d 100644 --- a/drivers/net/usb/qmi_wwan.c +++ b/drivers/net/usb/qmi_wwan.c @@ -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;