USB: EHCI: don't refcount QHs
This patch (as1567) removes ehci-hcd's reference counting of QH structures. It's not necessary to refcount these things because they always get deallocated at exactly one spot in ehci_endpoint_disable() (except for two special QHs, ehci->async and ehci->dummy) and are never used again. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
15be105b4a
commit
c83e1a9ff6
5 changed files with 8 additions and 44 deletions
|
@ -1179,7 +1179,7 @@ idle_timeout:
|
|||
if (qh->clearing_tt)
|
||||
goto idle_timeout;
|
||||
if (list_empty (&qh->qtd_list)) {
|
||||
qh_put (qh);
|
||||
qh_destroy(ehci, qh);
|
||||
break;
|
||||
}
|
||||
/* else FALL THROUGH */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue