Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sergei Shtylyov and committed by
Greg Kroah-Hartman
a5790e9e 368fbc34

-4
-4
drivers/usb/host/fhci-hub.c
··· 208 208 { 209 209 struct fhci_hcd *fhci = hcd_to_fhci(hcd); 210 210 int retval = 0; 211 - int len = 0; 212 211 struct usb_hub_status *hub_status; 213 212 struct usb_port_status *port_status; 214 213 unsigned long flags; ··· 271 272 break; 272 273 case GetHubDescriptor: 273 274 memcpy(buf, root_hub_des, sizeof(root_hub_des)); 274 - len = (buf[0] < wLength) ? buf[0] : wLength; 275 275 break; 276 276 case GetHubStatus: 277 277 hub_status = (struct usb_hub_status *)buf; ··· 278 280 cpu_to_le16(fhci->vroot_hub->hub.wHubStatus); 279 281 hub_status->wHubChange = 280 282 cpu_to_le16(fhci->vroot_hub->hub.wHubChange); 281 - len = 4; 282 283 break; 283 284 case GetPortStatus: 284 285 port_status = (struct usb_port_status *)buf; ··· 285 288 cpu_to_le16(fhci->vroot_hub->port.wPortStatus); 286 289 port_status->wPortChange = 287 290 cpu_to_le16(fhci->vroot_hub->port.wPortChange); 288 - len = 4; 289 291 break; 290 292 case SetHubFeature: 291 293 switch (wValue) {