diff options
author | Bjørn Mork <bjorn@mork.no> | 2013-11-01 17:18:54 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-05 00:40:16 +0400 |
commit | a298807b8dbf8b369932f396a6b9984283e25f75 (patch) | |
tree | e811b76e3c000afa02705bcfce213900ce68af86 /drivers/net/usb | |
parent | 79d9b62ad839f69593e7aa06790a2f1425c02462 (diff) | |
download | linux-a298807b8dbf8b369932f396a6b9984283e25f75.tar.xz |
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>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/qmi_wwan.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |