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

Submitted by Markus Armbruster on June 22, 2011, 12:03 p.m.

Details

Message ID 1308744237-3468-2-git-send-email-armbru@redhat.com
State New
Headers show

Commit Message

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