From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7Qid-0007e8-9Z for qemu-devel@nongnu.org; Tue, 13 Mar 2012 08:20:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7Qi9-0000w6-8Y for qemu-devel@nongnu.org; Tue, 13 Mar 2012 08:20:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7Qi9-0000vP-0c for qemu-devel@nongnu.org; Tue, 13 Mar 2012 08:20:17 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2DCKF7b005733 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 13 Mar 2012 08:20:15 -0400 From: Gerd Hoffmann Date: Tue, 13 Mar 2012 13:20:10 +0100 Message-Id: <1331641211-20077-14-git-send-email-kraxel@redhat.com> In-Reply-To: <1331641211-20077-1-git-send-email-kraxel@redhat.com> References: <1331641211-20077-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 13/14] uhci: alloc can't fail, drop check. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-uhci.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) 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 -- 1.7.1