net: cdc_mbim: no need to check for resume if suspend exists
authorBjørn Mork <bjorn@mork.no>
Fri, 1 Nov 2013 13:18:55 +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/cdc_mbim.c

index fbfd67f..347e6b9 100644 (file)
@@ -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;