Commit afc2c9a2 authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman

USB: EHCI: remove unused variable in unlink_empty_async()

This patch (as1669) removes the check_unlinks_later flag in ehci-hcd's
unlink_empty_async().  It wasn't being used for anything and should
have been removed in an earlier patch, but I forgot about it.
Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 214ac7a0
...@@ -1268,7 +1268,6 @@ static void unlink_empty_async(struct ehci_hcd *ehci) ...@@ -1268,7 +1268,6 @@ static void unlink_empty_async(struct ehci_hcd *ehci)
{ {
struct ehci_qh *qh; struct ehci_qh *qh;
struct ehci_qh *qh_to_unlink = NULL; struct ehci_qh *qh_to_unlink = NULL;
bool check_unlinks_later = false;
int count = 0; int count = 0;
/* Find the last async QH which has been empty for a timer cycle */ /* Find the last async QH which has been empty for a timer cycle */
...@@ -1276,9 +1275,7 @@ static void unlink_empty_async(struct ehci_hcd *ehci) ...@@ -1276,9 +1275,7 @@ static void unlink_empty_async(struct ehci_hcd *ehci)
if (list_empty(&qh->qtd_list) && if (list_empty(&qh->qtd_list) &&
qh->qh_state == QH_STATE_LINKED) { qh->qh_state == QH_STATE_LINKED) {
++count; ++count;
if (qh->unlink_cycle == ehci->async_unlink_cycle) if (qh->unlink_cycle != ehci->async_unlink_cycle)
check_unlinks_later = true;
else
qh_to_unlink = qh; qh_to_unlink = qh;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment