From: Harvey Harrison Date: Fri, 30 May 2008 17:39:04 +0000 (-0700) Subject: USB: speedtch.c fix sparse shadowed variable warning X-Git-Tag: v2.6.27-rc1~946^2~48 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=abe28c00b906b79dc9aff81087a81a5608f64170;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Harvey Harrison Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/atm/speedtch.c b/drivers/usb/atm/speedtch.c index 7d27c9cf3c4..76fce44c2f9 100644 --- a/drivers/usb/atm/speedtch.c +++ b/drivers/usb/atm/speedtch.c @@ -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 */