aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2015-01-11 17:49:01 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-25 07:48:28 -0500
commita5790e9e834bb48cb681620ec680203edb536242 (patch)
tree01ec3841acf3f363da7e3701367421bb0c1c86a7
parent368fbc34c4602accd1ba76d03b4cce07c9c90cf7 (diff)
fhci-hub: kill 'len' variable in fhci_hub_control()
The 'len' variable in fhci_hub_control() is write-only, so totally useless. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/host/fhci-hub.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/host/fhci-hub.c b/drivers/usb/host/fhci-hub.c
index 4d061a26b1ad..a081a780874d 100644
--- a/drivers/usb/host/fhci-hub.c
+++ b/drivers/usb/host/fhci-hub.c
@@ -208,7 +208,6 @@ int fhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
208{ 208{
209 struct fhci_hcd *fhci = hcd_to_fhci(hcd); 209 struct fhci_hcd *fhci = hcd_to_fhci(hcd);
210 int retval = 0; 210 int retval = 0;
211 int len = 0;
212 struct usb_hub_status *hub_status; 211 struct usb_hub_status *hub_status;
213 struct usb_port_status *port_status; 212 struct usb_port_status *port_status;
214 unsigned long flags; 213 unsigned long flags;
@@ -272,7 +271,6 @@ int fhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
272 break; 271 break;
273 case GetHubDescriptor: 272 case GetHubDescriptor:
274 memcpy(buf, root_hub_des, sizeof(root_hub_des)); 273 memcpy(buf, root_hub_des, sizeof(root_hub_des));
275 len = (buf[0] < wLength) ? buf[0] : wLength;
276 break; 274 break;
277 case GetHubStatus: 275 case GetHubStatus:
278 hub_status = (struct usb_hub_status *)buf; 276 hub_status = (struct usb_hub_status *)buf;
@@ -280,7 +278,6 @@ int fhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
280 cpu_to_le16(fhci->vroot_hub->hub.wHubStatus); 278 cpu_to_le16(fhci->vroot_hub->hub.wHubStatus);
281 hub_status->wHubChange = 279 hub_status->wHubChange =
282 cpu_to_le16(fhci->vroot_hub->hub.wHubChange); 280 cpu_to_le16(fhci->vroot_hub->hub.wHubChange);
283 len = 4;
284 break; 281 break;
285 case GetPortStatus: 282 case GetPortStatus:
286 port_status = (struct usb_port_status *)buf; 283 port_status = (struct usb_port_status *)buf;
@@ -288,7 +285,6 @@ int fhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
288 cpu_to_le16(fhci->vroot_hub->port.wPortStatus); 285 cpu_to_le16(fhci->vroot_hub->port.wPortStatus);
289 port_status->wPortChange = 286 port_status->wPortChange =
290 cpu_to_le16(fhci->vroot_hub->port.wPortChange); 287 cpu_to_le16(fhci->vroot_hub->port.wPortChange);
291 len = 4;
292 break; 288 break;
293 case SetHubFeature: 289 case SetHubFeature:
294 switch (wValue) { 290 switch (wValue) {