forked from luck/tmp_suning_uos_patched
[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 @@ int usb_set_configuration(struct usb_device *dev, int configuration)
|
||||
*/
|
||||
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