提交 d0f830d3 编写于 作者: H H Hartley Sweeten 提交者: Greg Kroah-Hartman

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: NH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 96f90a8b
...@@ -457,13 +457,13 @@ static void hub_tt_kevent (struct work_struct *work) ...@@ -457,13 +457,13 @@ static void hub_tt_kevent (struct work_struct *work)
spin_lock_irqsave (&hub->tt.lock, flags); spin_lock_irqsave (&hub->tt.lock, flags);
while (--limit && !list_empty (&hub->tt.clear_list)) { while (--limit && !list_empty (&hub->tt.clear_list)) {
struct list_head *temp; struct list_head *next;
struct usb_tt_clear *clear; struct usb_tt_clear *clear;
struct usb_device *hdev = hub->hdev; struct usb_device *hdev = hub->hdev;
int status; int status;
temp = hub->tt.clear_list.next; next = hub->tt.clear_list.next;
clear = list_entry (temp, struct usb_tt_clear, clear_list); clear = list_entry (next, struct usb_tt_clear, clear_list);
list_del (&clear->clear_list); list_del (&clear->clear_list);
/* drop lock so HCD can concurrently report other TT errors */ /* drop lock so HCD can concurrently report other TT errors */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册