net: qmi_wwan: no need to check for resume if suspend exists
authorBjørn Mork <bjorn@mork.no>
Fri, 1 Nov 2013 13:18:54 +0000 (14:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Nov 2013 20:40:16 +0000 (15:40 -0500)
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>
drivers/net/usb/qmi_wwan.c

index 5dd0d85e633544dd42937fd7f50ba0c4cc3877a8..23bdd5b9274ddb6becb5eabad2d4709b7b2a732d 100644 (file)
@@ -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;