aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2013-08-26 13:38:50 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2013-09-01 19:11:56 +0400
commit5b21a2ae4dea72d9aa68e0385fc0548971e929f4 (patch)
tree8e9991c6474a76ecf2880ff7e7c1b550928df840 /block
parented6bc28e8a448b9005af50eed12893c5f7711c6e (diff)
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 <stefanha@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'block')
-rw-r--r--block/curl.c6
1 files changed, 0 insertions, 6 deletions
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;
}