aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorMarcin Slusarz <marcin.slusarz@gmail.com>2007-12-15 21:25:13 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-02-01 17:34:58 -0500
commitf570728f89c9d4b262f7c180e5a8e230e675af0c (patch)
tree7fbeab1eb696f87234dd2d6d0edd02f00537fc28 /drivers/usb/host
parent7f9705b04c1638b3682f63ece7931384f4542f17 (diff)
USB: ehci-hcd: fix sparse warning about shadowing 'status' symbol
fix warning: drivers/usb/host/ehci-hcd.c:832:8: warning: symbol 'status' shadows an earlier one drivers/usb/host/ehci-hcd.c:790:71: originally declared here Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/ehci-hcd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index 5917c6b7ce33..fb2b227afc4f 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -862,16 +862,16 @@ static int ehci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
862 /* reschedule QH iff another request is queued */ 862 /* reschedule QH iff another request is queued */
863 if (!list_empty (&qh->qtd_list) 863 if (!list_empty (&qh->qtd_list)
864 && HC_IS_RUNNING (hcd->state)) { 864 && HC_IS_RUNNING (hcd->state)) {
865 int status; 865 int schedule_status;
866 866
867 status = qh_schedule (ehci, qh); 867 schedule_status = qh_schedule (ehci, qh);
868 spin_unlock_irqrestore (&ehci->lock, flags); 868 spin_unlock_irqrestore (&ehci->lock, flags);
869 869
870 if (status != 0) { 870 if (schedule_status != 0) {
871 // shouldn't happen often, but ... 871 // shouldn't happen often, but ...
872 // FIXME kill those tds' urbs 872 // FIXME kill those tds' urbs
873 err ("can't reschedule qh %p, err %d", 873 err ("can't reschedule qh %p, err %d",
874 qh, status); 874 qh, schedule_status);
875 } 875 }
876 return status; 876 return status;
877 } 877 }