Skip to content

Commit

Permalink
curl: qemu_bh_new() can never return NULL
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stefanhaRH authored and Michael Tokarev committed Sep 1, 2013
1 parent ed6bc28 commit 5b21a2a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions block/curl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5b21a2a

Please sign in to comment.