Permalink
Browse files

Revert "Sleep of death workaround related to adb"

This reverts commit 7ba1b0b.
  • Loading branch information...
1 parent 0b1d1f8 commit e4b744fc9187eb17b7885fe1ad2e71480552ae3e @dalingrin committed May 16, 2011
Showing with 0 additions and 12 deletions.
  1. +0 −12 drivers/usb/musb/musb_gadget.c
@@ -1159,7 +1159,6 @@ static int musb_gadget_queue(struct usb_ep *ep, struct usb_request *req,
struct musb *musb;
int status = 0;
unsigned long lockflags;
- struct usb_request *r, *tmp;
if (!ep || !req)
return -EINVAL;
@@ -1217,17 +1216,6 @@ static int musb_gadget_queue(struct usb_ep *ep, struct usb_request *req,
goto cleanup;
}
- /* If we have the request already, kill the offender */
- list_for_each_entry_safe(r, tmp, &musb_ep->req_list, list) {
- if (to_musb_request(r) != request)
- continue;
- WARN_ON(1);
- send_sig(SIGKILL, current, 0);
- status = -ESHUTDOWN;
- goto cleanup;
- }
-
-
/* add request to the list */
list_add_tail(&(request->request.list), &(musb_ep->req_list));

0 comments on commit e4b744f

Please sign in to comment.