Patchwork ehci: Remove unnecessary ehci_flush_qh call

login
register
mail settings
Submitter Hans de Goede
Date Aug. 16, 2012, 1:47 p.m.
Message ID <1345124849-18722-1-git-send-email-hdegoede@redhat.com>
Download mbox | patch
Permalink /patch/177992/
State New
Headers show

Comments

Hans de Goede - Aug. 16, 2012, 1:47 p.m.
ehci_qh_do_overlay() already calls ehci_flush_qh() before it returns, calling
it twice is useless.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 hw/usb/hcd-ehci.c | 1 -
 1 file changed, 1 deletion(-)

Patch

diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
index 8b94b17..41d663d 100644
--- a/hw/usb/hcd-ehci.c
+++ b/hw/usb/hcd-ehci.c
@@ -1956,7 +1956,6 @@  static int ehci_state_fetchqtd(EHCIQueue *q)
     }
     if (p != NULL) {
         ehci_qh_do_overlay(q);
-        ehci_flush_qh(q);
         if (p->async == EHCI_ASYNC_INFLIGHT) {
             ehci_set_state(q->ehci, q->async, EST_HORIZONTALQH);
         } else {