aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor_core@ameritech.net>2005-11-17 12:46:44 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-17 14:29:53 -0500
commitd4ece29d89d424ea045753c639971429faa9ee58 (patch)
treee92d83765fbd0a854480c6761459d65540008df9
parentebb6f371ac5ce623051c4431c5d0f093462f679b (diff)
[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>
-rw-r--r--drivers/usb/core/message.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c
index 644a3d4f12aa..208c6bd83a83 100644
--- a/drivers/usb/core/message.c
+++ b/drivers/usb/core/message.c
@@ -1457,12 +1457,11 @@ free_interfaces:
1457 */ 1457 */
1458 for (i = 0; i < nintf; ++i) { 1458 for (i = 0; i < nintf; ++i) {
1459 struct usb_interface *intf = cp->interface[i]; 1459 struct usb_interface *intf = cp->interface[i];
1460 struct usb_host_interface *alt = intf->cur_altsetting;
1461 1460
1462 dev_dbg (&dev->dev, 1461 dev_dbg (&dev->dev,
1463 "adding %s (config #%d, interface %d)\n", 1462 "adding %s (config #%d, interface %d)\n",
1464 intf->dev.bus_id, configuration, 1463 intf->dev.bus_id, configuration,
1465 alt->desc.bInterfaceNumber); 1464 intf->cur_altsetting->desc.bInterfaceNumber);
1466 ret = device_add (&intf->dev); 1465 ret = device_add (&intf->dev);
1467 if (ret != 0) { 1466 if (ret != 0) {
1468 dev_err(&dev->dev, 1467 dev_err(&dev->dev,