mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 09:31:26 +00:00
[PATCH] USB: fix 'unused variable' warning
USB: fix 'unused variable' warning Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
ebb6f371ac
commit
d4ece29d89
@ -1457,12 +1457,11 @@ free_interfaces:
|
||||
*/
|
||||
for (i = 0; i < nintf; ++i) {
|
||||
struct usb_interface *intf = cp->interface[i];
|
||||
struct usb_host_interface *alt = intf->cur_altsetting;
|
||||
|
||||
dev_dbg (&dev->dev,
|
||||
"adding %s (config #%d, interface %d)\n",
|
||||
intf->dev.bus_id, configuration,
|
||||
alt->desc.bInterfaceNumber);
|
||||
intf->cur_altsetting->desc.bInterfaceNumber);
|
||||
ret = device_add (&intf->dev);
|
||||
if (ret != 0) {
|
||||
dev_err(&dev->dev,
|
||||
|
Loading…
Reference in New Issue
Block a user