Patchwork [13/14] uhci: alloc can't fail, drop check.

login
register
mail settings
Submitter Gerd Hoffmann
Date March 13, 2012, 12:20 p.m.
Message ID <1331641211-20077-14-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/146405/
State New
Headers show

Comments

Gerd Hoffmann - March 13, 2012, 12:20 p.m.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/usb/hcd-uhci.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Patch

diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c
index 8e34961..e55dad9 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