diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2014-10-21 06:21:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-03 18:38:17 -0500 |
commit | 527307eacb014ba903b80694e6855fbdf20c89df (patch) | |
tree | 52625ee0578a7bf0e1ad5f529f917f63c86c6bd5 /drivers/usb/core | |
parent | e5283626f5d535c54cbcc3ec4a60a4746578a4c2 (diff) |
usb: hub: remove unused variable
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>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/hub.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index c096a1a135cc..89e9e2ca46fa 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
@@ -3910,14 +3910,9 @@ static void usb_enable_link_state(struct usb_hcd *hcd, struct usb_device *udev, | |||
3910 | static int usb_disable_link_state(struct usb_hcd *hcd, struct usb_device *udev, | 3910 | static int usb_disable_link_state(struct usb_hcd *hcd, struct usb_device *udev, |
3911 | enum usb3_link_state state) | 3911 | enum usb3_link_state state) |
3912 | { | 3912 | { |
3913 | int feature; | ||
3914 | |||
3915 | switch (state) { | 3913 | switch (state) { |
3916 | case USB3_LPM_U1: | 3914 | case USB3_LPM_U1: |
3917 | feature = USB_PORT_FEAT_U1_TIMEOUT; | ||
3918 | break; | ||
3919 | case USB3_LPM_U2: | 3915 | case USB3_LPM_U2: |
3920 | feature = USB_PORT_FEAT_U2_TIMEOUT; | ||
3921 | break; | 3916 | break; |
3922 | default: | 3917 | default: |
3923 | dev_warn(&udev->dev, "%s: Can't disable non-U1 or U2 state.\n", | 3918 | dev_warn(&udev->dev, "%s: Can't disable non-U1 or U2 state.\n", |