ehci: check for EHCI_ASYNC_FINISHED first in ehci_free_packet
commit616789cde2a83fad5e634880fd20214f0c984fd5
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 31 Aug 2012 08:31:54 +0000 (31 10:31 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 11 Sep 2012 05:42:59 +0000 (11 07:42 +0200)
tree59d2823bd71c768384827d0769dd3853573d86d2
parent4b63a0df3bda8a2c278e45d9d94d9ba6d5791d8d
ehci: check for EHCI_ASYNC_FINISHED first in ehci_free_packet

Otherwise we'll see the packet free twice in the trace log even though
it actually happens only once.

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