usb-ehci: Remove dead nakcnt code
commitaa73fcdcc1bf4157121716e2eb3230130b0d1232
authorHans de Goede <hdegoede@redhat.com>
Fri, 2 Mar 2012 20:27:16 +0000 (2 21:27 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 7 Mar 2012 11:28:04 +0000 (7 12:28 +0100)
tree49330ffc6e9e03fae693a174cb2e6dd23c900f1d
parentdd54cfe0bcf30d1f3a34e9c397f619d423fe0c5b
usb-ehci: Remove dead nakcnt code

This patch removes 2 bits of dead nakcnt code:

1) usb_ehci_execute calls ehci_qh_do_overlay which does:
nakcnt = reload;
and then has a block of code which is conditional on:
if (reload && !nakcnt) {
which ofcourse is never true now as nakcnt == reload.

2) ehci_state_fetchqh does:
nakcnt = reload;
but before nakcnt is ever used ehci_state_fetchqh is always followed
by a ehci_qh_do_overlay call which also does:
nakcnt = reload;
So doing this from ehci_state_fetchqh is redundant.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-ehci.c