[patch 05/12] USB: fix 'unused variable' warning

Greg Kroah-Hartman
2005-11-14T20:20:15Z

[-- Attachment #1: usb-fix-unused-variable-warning.patch --]
[-- Type: text/plain, Size: 885 bytes --]

From: Dmitry Torokhov <dtor_core@ameritech.net>

USB: fix 'unused variable' warning

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

drivers/usb/core/message.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

--- gregkh-2.6.orig/drivers/usb/core/message.c 2005-11-02 09:25:03.000000000 -0800
+++ gregkh-2.6/drivers/usb/core/message.c 2005-11-02 10:28:05.000000000 -0800
@@ -1457,12 +1457,11 @@
*/
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,

--