uhci: Don't retry on error
authorHans de Goede <hdegoede@redhat.com>
Wed, 24 Oct 2012 16:31:07 +0000 (18:31 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 25 Oct 2012 07:08:10 +0000 (09:08 +0200)
commita89e255b0cbe7c5b56348201e1c0f6d427c98fc8
tree4f64268e2336b482a15440676396b4d6557cbe0e
parent2f2ee2689ffe8a784a86bf10fb946772748632c7
uhci: Don't retry on error

Since we are either dealing with emulated devices, where retrying is
not going to help, or with redirected devices where the host OS will
have already retried, don't bother retrying on failed transfers.

Also move some common/indentical code out of all the error cases
into the generic error path.

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