]> git.baikalelectronics.ru Git - kernel.git/commit
USB: fix previous sparse fix which was incorrect
authorDavid Brownell <david-b@pacbell.net>
Sat, 2 Feb 2008 10:36:53 +0000 (02:36 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Feb 2008 23:38:51 +0000 (15:38 -0800)
commitc77219d544b57bf377de19b06ab77c0098b8bdf0
treec2dcf73d9dc390957499d634bb02b2b30a1bf951
parentcaa6a0ec51e76e212f8f8f2587fe22a8758e16c2
USB: fix previous sparse fix which was incorrect

The previous fix for a "sparse" warning in ehci_urb_dequeue() was
incorrect.  After rescheduling interrupt transfers it returned the
URB's completion status, not status for the dequeue operation itself.

This patch resolves that issue, cleans up the code in the reschedule
path, and shrinks the object code by a dozen bytes.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ehci-hcd.c