aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2013-11-01 09:18:55 -0400
committerDavid S. Miller <davem@davemloft.net>2013-11-04 15:40:16 -0500
commitc37ac9b22b6732c0c9dc17076ebe84e841d4eb16 (patch)
treef15dfc9fdb589b895e06c13f73f4ef0f99504898 /drivers
parenta298807b8dbf8b369932f396a6b9984283e25f75 (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/usb/cdc_mbim.c2
1 files changed, 1 insertions, 1 deletions
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)
410 if (ret < 0) 410 if (ret < 0)
411 goto err; 411 goto err;
412 ret = usbnet_resume(intf); 412 ret = usbnet_resume(intf);
413 if (ret < 0 && callsub && info->subdriver->suspend) 413 if (ret < 0 && callsub)
414 info->subdriver->suspend(intf, PMSG_SUSPEND); 414 info->subdriver->suspend(intf, PMSG_SUSPEND);
415err: 415err:
416 return ret; 416 return ret;