diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-06-22 14:03:53 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-06-24 09:13:36 +0100 |
commit | db78ef5b0a93b16ad56b70a70e21b1c5e7d06ba8 (patch) | |
tree | 559accb9bc00689c717e1e48d0f95ce09ba190bf | |
parent | 1802651cb5660d692756f36318e4daed0728c295 (diff) |
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>
-rw-r--r-- | block/sheepdog.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/block/sheepdog.c b/block/sheepdog.c index 0392ca8c9c..2180299bdd 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; } |