aboutsummaryrefslogtreecommitdiff
path: root/block/sheepdog.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2011-06-22 14:03:53 +0200
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-06-24 09:13:36 +0100
commitdb78ef5b0a93b16ad56b70a70e21b1c5e7d06ba8 (patch)
tree559accb9bc00689c717e1e48d0f95ce09ba190bf /block/sheepdog.c
parent1802651cb5660d692756f36318e4daed0728c295 (diff)
downloadqemu-db78ef5b0a93b16ad56b70a70e21b1c5e7d06ba8.zip
qemu-db78ef5b0a93b16ad56b70a70e21b1c5e7d06ba8.tar.gz
qemu-db78ef5b0a93b16ad56b70a70e21b1c5e7d06ba8.tar.bz2
sheepdog: qemu_bh_new() can't return null pointer, drop check
Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'block/sheepdog.c')
-rw-r--r--block/sheepdog.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/block/sheepdog.c b/block/sheepdog.c
index 0392ca8..2180299 100644
--- a/block/sheepdog.c
+++ b/block/sheepdog.c
@@ -449,13 +449,7 @@ static int sd_schedule_bh(QEMUBHFunc *cb, SheepdogAIOCB *acb)
}
acb->bh = qemu_bh_new(cb, acb);
- if (!acb->bh) {
- error_report("oom: %d %d\n", acb->aiocb_type, acb->aiocb_type);
- return -EIO;
- }
-
qemu_bh_schedule(acb->bh);
-
return 0;
}