Patchwork [trivial,1/5] sheepdog: qemu_bh_new() can't return null pointer, drop check

login
register
mail settings
Submitter Markus Armbruster
Date June 22, 2011, 12:03 p.m.
Message ID <1308744237-3468-2-git-send-email-armbru@redhat.com>
Download mbox | patch
Permalink /patch/101441/
State New
Headers show

Comments

Markus Armbruster - June 22, 2011, 12:03 p.m.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 block/sheepdog.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

Patch

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