diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-11-24 20:01:24 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2013-11-24 22:17:46 +0100 |
commit | 78005c5b2e5682cec16aeb5f94f478e115dde4f5 (patch) | |
tree | 74c1abd982adf9751deeb854bfbaa2d3584508ad /backport/compat | |
parent | 7e5e6782399fbd41f6d7f323d3c5b8d0c72190b3 (diff) |
backports: remove usb_unlink_anchored_urbs()
kref_get_unless_zero() was never called by any code.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'backport/compat')
-rw-r--r-- | backport/compat/compat-2.6.36.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/backport/compat/compat-2.6.36.c b/backport/compat/compat-2.6.36.c index ea6443d3..331e9916 100644 --- a/backport/compat/compat-2.6.36.c +++ b/backport/compat/compat-2.6.36.c @@ -23,29 +23,6 @@ static void __usb_unanchor_urb(struct urb *urb, struct usb_anchor *anchor) } /** - * usb_unlink_anchored_urbs - asynchronously cancel transfer requests en masse - * @anchor: anchor the requests are bound to - * - * this allows all outstanding URBs to be unlinked starting - * from the back of the queue. This function is asynchronous. - * The unlinking is just tiggered. It may happen after this - * function has returned. - * - * This routine should not be called by a driver after its disconnect - * method has returned. - */ -void usb_unlink_anchored_urbs(struct usb_anchor *anchor) -{ - struct urb *victim; - - while ((victim = usb_get_from_anchor(anchor)) != NULL) { - usb_unlink_urb(victim); - usb_put_urb(victim); - } -} -EXPORT_SYMBOL_GPL(usb_unlink_anchored_urbs); - -/** * usb_get_from_anchor - get an anchor's oldest urb * @anchor: the anchor whose urb you want * |