From: Dmitry Torokhov Date: Thu, 17 Nov 2005 17:46:44 +0000 (-0800) Subject: [PATCH] USB: fix 'unused variable' warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d4ece29d89d424ea045753c639971429faa9ee58;p=openwrt%2Fstaging%2Fblogic.git [PATCH] USB: fix 'unused variable' warning USB: fix 'unused variable' warning Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds --- 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: */ 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,