usb: hub: remove unused variable
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 21 Oct 2014 10:21:34 +0000 (15:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Nov 2014 23:38:17 +0000 (15:38 -0800)
the integer variable 'feature' was not being used anywhere in the function.
so it is safe to remove the variable.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c

index c096a1a135cc5d3a8f184bfcfc29948cd9094b7b..89e9e2ca46fac6955db465ea1bb74acab63f4c67 100644 (file)
@@ -3910,14 +3910,9 @@ static void usb_enable_link_state(struct usb_hcd *hcd, struct usb_device *udev,
 static int usb_disable_link_state(struct usb_hcd *hcd, struct usb_device *udev,
                enum usb3_link_state state)
 {
-       int feature;
-
        switch (state) {
        case USB3_LPM_U1:
-               feature = USB_PORT_FEAT_U1_TIMEOUT;
-               break;
        case USB3_LPM_U2:
-               feature = USB_PORT_FEAT_U2_TIMEOUT;
                break;
        default:
                dev_warn(&udev->dev, "%s: Can't disable non-U1 or U2 state.\n",