]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commitdiff
sheepdog: qemu_bh_new() can't return null pointer, drop check
authorMarkus Armbruster <armbru@redhat.com>
Wed, 22 Jun 2011 12:03:53 +0000 (14:03 +0200)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Fri, 24 Jun 2011 08:13:36 +0000 (09:13 +0100)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
block/sheepdog.c

index 0392ca8c9c1d934f3d662b3a786fdd526bf81e1b..2180299bddb6612b8621c2df58184280d46546f0 100644 (file)
@@ -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;
 }