Commit 5a1d99b1 authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman

usb: ohci-s3c2410: Remove set but not used variable 'hcd'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/usb/host/ohci-s3c2410.c: In function s3c2410_hcd_oc:
drivers/usb/host/ohci-s3c2410.c:296:18: warning: variable hcd set but not used [-Wunused-but-set-variable]

It is never used, so can be removed.
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6dade7ad
...@@ -293,7 +293,6 @@ static int ohci_s3c2410_hub_control( ...@@ -293,7 +293,6 @@ static int ohci_s3c2410_hub_control(
static void s3c2410_hcd_oc(struct s3c2410_hcd_info *info, int port_oc) static void s3c2410_hcd_oc(struct s3c2410_hcd_info *info, int port_oc)
{ {
struct s3c2410_hcd_port *port; struct s3c2410_hcd_port *port;
struct usb_hcd *hcd;
unsigned long flags; unsigned long flags;
int portno; int portno;
...@@ -301,7 +300,6 @@ static void s3c2410_hcd_oc(struct s3c2410_hcd_info *info, int port_oc) ...@@ -301,7 +300,6 @@ static void s3c2410_hcd_oc(struct s3c2410_hcd_info *info, int port_oc)
return; return;
port = &info->port[0]; port = &info->port[0];
hcd = info->hcd;
local_irq_save(flags); local_irq_save(flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment