[PATCH] USB: fix 'unused variable' warning
authorDmitry Torokhov <dtor_core@ameritech.net>
Thu, 17 Nov 2005 17:46:44 +0000 (09:46 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 17 Nov 2005 19:29:53 +0000 (11:29 -0800)
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>
drivers/usb/core/message.c

index 644a3d4f12aa15bc44c12dabc937406839e010e8..208c6bd83a8369f840e754aeafe277a452016d16 100644 (file)
@@ -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,