From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S49Ii-0007wr-HO for qemu-devel@nongnu.org; Sun, 04 Mar 2012 06:08:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S49Ig-0008WR-Sy for qemu-devel@nongnu.org; Sun, 04 Mar 2012 06:08:28 -0500 Received: from mx1.redhat.com ([209.132.183.28]:63761) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S49Ig-0008WH-LO for qemu-devel@nongnu.org; Sun, 04 Mar 2012 06:08:26 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q24B8O5S013516 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 4 Mar 2012 06:08:24 -0500 From: Hans de Goede Date: Sun, 4 Mar 2012 12:10:11 +0100 Message-Id: <1330859411-16926-1-git-send-email-hdegoede@redhat.com> Subject: [Qemu-devel] [PATCH] usb-ehci: drop unused isoch_pause variable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Hans de Goede , qemu-devel@nongnu.org Signed-off-by: Hans de Goede --- hw/usb-ehci.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c index df742f7..f4d53ff 100644 --- a/hw/usb-ehci.c +++ b/hw/usb-ehci.c @@ -419,7 +419,6 @@ struct EHCIState { USBPacket ipacket; QEMUSGList isgl; - int isoch_pause; uint64_t last_run_ns; }; @@ -907,7 +906,6 @@ static void ehci_reset(void *opaque) s->astate = EST_INACTIVE; s->pstate = EST_INACTIVE; - s->isoch_pause = -1; s->attach_poll_counter = 0; for(i = 0; i < NB_PORTS; i++) { @@ -2150,9 +2148,7 @@ static void ehci_frame_timer(void *opaque) for (i = 0; i < frames; i++) { if ( !(ehci->usbsts & USBSTS_HALT)) { - if (ehci->isoch_pause <= 0) { - ehci->frindex += 8; - } + ehci->frindex += 8; if (ehci->frindex > 0x00001fff) { ehci->frindex = 0; -- 1.7.7.6