From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeN8F-0008IT-Ox for qemu-devel@nongnu.org; Wed, 15 Oct 2014 07:52:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XeN89-0000hu-LC for qemu-devel@nongnu.org; Wed, 15 Oct 2014 07:52:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeN89-0000gJ-Ct for qemu-devel@nongnu.org; Wed, 15 Oct 2014 07:52:37 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9FBqaL3023578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 15 Oct 2014 07:52:36 -0400 From: Gerd Hoffmann Date: Wed, 15 Oct 2014 13:52:33 +0200 Message-Id: <1413373953-19493-5-git-send-email-kraxel@redhat.com> In-Reply-To: <1413373953-19493-1-git-send-email-kraxel@redhat.com> References: <1413373953-19493-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PULL 4/4] xhci: remove dead code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Reported-by: Dr. David Alan Gilbert Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-xhci.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index c556367..a27c9d3 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -1608,12 +1608,6 @@ static TRBCCode xhci_reset_ep(XHCIState *xhci, unsigned int slotid, "data might be lost\n"); } - uint8_t ep = epid>>1; - - if (epid & 1) { - ep |= 0x80; - } - if (!xhci->slots[slotid-1].uport || !xhci->slots[slotid-1].uport->dev || !xhci->slots[slotid-1].uport->dev->attached) { -- 1.8.3.1