]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
uhci: alloc can't fail, drop check.
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 9 Mar 2012 10:10:48 +0000 (11:10 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 13 Mar 2012 09:15:32 +0000 (10:15 +0100)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-uhci.c

index 8e349618597bb764abd8288f07decda6456c8dee..e55dad914c322eaecd04acdaf020a16f866277ed 100644 (file)
@@ -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