Skip to contentSkip to conversation

usb: speedtch.c fix sparse shadowed variable warning

PATCH New Harvey Harrison 1 participant 1 message May 30, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: speedtch.c fix sparse shadowed variable warning

i is used only as a for-loop index no need to declare another. drivers/usb/atm/speedtch.c:832:7: warning: symbol 'i' shadows an earlier one drivers/usb/atm/speedtch.c:766:6: originally declared here

---
 drivers/usb/atm/speedtch.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/usb/atm/speedtch.c +0 -1
index 7d27c9c..76fce44 100644
@@ -829,7 +829,6 @@ static int speedtch_bind(struct usbatm_data *usbatm,
 	if (use_isoc) {
 		const struct usb_host_interface *desc = data_intf->cur_altsetting;
 		const __u8 target_address = USB_DIR_IN | usbatm->driver->isoc_in;
-		int i;
 
 		use_isoc = 0; /* fall back to bulk if endpoint not found */
 
Signature · 1 line
1.5.6.rc0.277.g804cf