]> git.ipfire.org Git - thirdparty/qemu.git/commit
ehci: simplify ehci_state_executing
authorHans de Goede <hdegoede@redhat.com>
Fri, 17 Aug 2012 09:39:17 +0000 (11:39 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 31 Aug 2012 10:02:15 +0000 (12:02 +0200)
commit574ef17191f5ec5a3cc4782c1f59dc5eb8279654
tree33b93a5f1ceb452469a5c019fa4725141f2e85eb
parent53dd6f7032ec4898ca8f95356df795a92cd27e09
ehci: simplify ehci_state_executing

ehci_state_executing does not need to check for p->usb_status == USB_RET_ASYNC
or USB_RET_PROCERR, since ehci_execute_complete already does a similar check
and will trigger an assert if either value is encountered.

USB_RET_ASYNC should never be the packet status when execute_complete runs
for obvious reasons, and USB_RET_PROCERR is only used by ehci_state_execute /
ehci_execute not by ehci_state_executing / ehci_execute_complete.

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