qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PULL 4/4] xhci: remove dead code
Date: Wed, 15 Oct 2014 13:52:33 +0200	[thread overview]
Message-ID: <1413373953-19493-5-git-send-email-kraxel@redhat.com> (raw)
In-Reply-To: <1413373953-19493-1-git-send-email-kraxel@redhat.com>

Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 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

  parent reply	other threads:[~2014-10-15 11:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-15 11:52 [Qemu-devel] [PULL 0/4] usb: add high speed mouse & keyboard configuration Gerd Hoffmann
2014-10-15 11:52 ` [Qemu-devel] [PULL 1/4] usb-hid: Move descriptor decision to usb-hid initfn Gerd Hoffmann
2014-10-15 11:52 ` [Qemu-devel] [PULL 2/4] usb-hid: Add high speed mouse configuration Gerd Hoffmann
2014-10-15 11:52 ` [Qemu-devel] [PULL 3/4] usb-hid: Add high speed keyboard configuration Gerd Hoffmann
2014-10-15 11:52 ` Gerd Hoffmann [this message]
2014-10-22 15:39 ` [Qemu-devel] [PULL 0/4] usb: add high speed mouse & " Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1413373953-19493-5-git-send-email-kraxel@redhat.com \
    --to=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).