From 5b21a2ae4dea72d9aa68e0385fc0548971e929f4 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Mon, 26 Aug 2013 13:38:50 +0200 Subject: curl: qemu_bh_new() can never return NULL Drop error code path which cannot be taken since qemu_bh_new() does not return NULL. Signed-off-by: Stefan Hajnoczi Reviewed-by: Paolo Bonzini Signed-off-by: Michael Tokarev --- block/curl.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'block/curl.c') diff --git a/block/curl.c b/block/curl.c index e566855f76..ca2cedcec1 100644 --- a/block/curl.c +++ b/block/curl.c @@ -572,12 +572,6 @@ static BlockDriverAIOCB *curl_aio_readv(BlockDriverState *bs, acb->nb_sectors = nb_sectors; acb->bh = qemu_bh_new(curl_readv_bh_cb, acb); - - if (!acb->bh) { - DPRINTF("CURL: qemu_bh_new failed\n"); - return NULL; - } - qemu_bh_schedule(acb->bh); return &acb->common; } -- cgit v1.2.1