[03/13] sheepdog: qemu_bh_new() can't return null pointer, drop check

Submitted by Stefan Hajnoczi on June 24, 2011, 4:56 p.m.

Details

Message ID 1308934609-20824-4-git-send-email-stefanha@linux.vnet.ibm.com
State New
Headers show

Commit Message

Stefan Hajnoczi June 24, 2011, 4:56 p.m.
From: Markus Armbruster <armbru@redhat.com>

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 block/sheepdog.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

Patch hide | download patch | download mbox

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;
 }