diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2009-04-22 16:03:05 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-16 00:44:42 -0400 |
commit | d0f830d30c24175b463fa725ba369a5117fbdd8f (patch) | |
tree | ddd4f27bed23fcdd6ae206e7c18503a3208a0052 /drivers | |
parent | 96f90a8b0dc84538ee4a31d3a5b80d758916629e (diff) |
USB: hub.c: fix sparse warnings
Fix sparse warning in drivers/usb/core/hub.c.
The following sparse warning is seen when building on ARM due
do the macro raw_local_irq_save():
warning: symbol 'temp' shadows an earlier one
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/core/hub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index be86ae3f4088..c7a1a1d4bcb1 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
@@ -457,13 +457,13 @@ static void hub_tt_kevent (struct work_struct *work) | |||
457 | 457 | ||
458 | spin_lock_irqsave (&hub->tt.lock, flags); | 458 | spin_lock_irqsave (&hub->tt.lock, flags); |
459 | while (--limit && !list_empty (&hub->tt.clear_list)) { | 459 | while (--limit && !list_empty (&hub->tt.clear_list)) { |
460 | struct list_head *temp; | 460 | struct list_head *next; |
461 | struct usb_tt_clear *clear; | 461 | struct usb_tt_clear *clear; |
462 | struct usb_device *hdev = hub->hdev; | 462 | struct usb_device *hdev = hub->hdev; |
463 | int status; | 463 | int status; |
464 | 464 | ||
465 | temp = hub->tt.clear_list.next; | 465 | next = hub->tt.clear_list.next; |
466 | clear = list_entry (temp, struct usb_tt_clear, clear_list); | 466 | clear = list_entry (next, struct usb_tt_clear, clear_list); |
467 | list_del (&clear->clear_list); | 467 | list_del (&clear->clear_list); |
468 | 468 | ||
469 | /* drop lock so HCD can concurrently report other TT errors */ | 469 | /* drop lock so HCD can concurrently report other TT errors */ |