From: Gerd Hoffmann Date: Fri, 9 Mar 2012 10:10:48 +0000 (+0100) Subject: uhci: alloc can't fail, drop check. X-Git-Tag: v1.1-rc0~235^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c60134091cb2754d810b012773754967d8bbf92;p=thirdparty%2Fqemu.git uhci: alloc can't fail, drop check. Signed-off-by: Gerd Hoffmann --- diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c index 8e349618597..e55dad914c3 100644 --- a/hw/usb/hcd-uhci.c +++ b/hw/usb/hcd-uhci.c @@ -821,8 +821,6 @@ static int uhci_handle_td(UHCIState *s, uint32_t addr, UHCI_TD *td, uint32_t *in /* Allocate new packet */ async = uhci_async_alloc(uhci_queue_get(s, td), addr); - if (!async) - return TD_RESULT_NEXT_QH; /* valid needs to be large enough to handle 10 frame delay * for initial isochronous requests