aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2005-12-13 10:32:13 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-04 16:51:42 -0500
commitf3d34ed48c80903544b509031fee64838d29f35f (patch)
treea959c2437cc15e16efca32a8827f3f303fca65f3 /drivers/usb
parent3717f2952bd0aab30fe2a6af80657abbeb065461 (diff)
[PATCH] USB: fix local variable clash
This patch (as621) fixes a local variable conflict I accidently introduced into usb_set_configuration. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/message.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c
index 99ab774d4fdb..319de03944e7 100644
--- a/drivers/usb/core/message.c
+++ b/drivers/usb/core/message.c
@@ -1387,11 +1387,11 @@ free_interfaces:
1387 if (dev->state != USB_STATE_ADDRESS) 1387 if (dev->state != USB_STATE_ADDRESS)
1388 usb_disable_device (dev, 1); // Skip ep0 1388 usb_disable_device (dev, 1); // Skip ep0
1389 1389
1390 n = dev->bus_mA - cp->desc.bMaxPower * 2; 1390 i = dev->bus_mA - cp->desc.bMaxPower * 2;
1391 if (n < 0) 1391 if (i < 0)
1392 dev_warn(&dev->dev, "new config #%d exceeds power " 1392 dev_warn(&dev->dev, "new config #%d exceeds power "
1393 "limit by %dmA\n", 1393 "limit by %dmA\n",
1394 configuration, -n); 1394 configuration, -i);
1395 1395
1396 if ((ret = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), 1396 if ((ret = usb_control_msg(dev, usb_sndctrlpipe(dev, 0),
1397 USB_REQ_SET_CONFIGURATION, 0, configuration, 0, 1397 USB_REQ_SET_CONFIGURATION, 0, configuration, 0,