projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1802651
)
sheepdog: qemu_bh_new() can't return null pointer, drop check
author
Markus Armbruster
<armbru@redhat.com>
Wed, 22 Jun 2011 12:03:53 +0000
(14:03 +0200)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/block/sheepdog.c
b/block/sheepdog.c
index 0392ca8c9c1d934f3d662b3a786fdd526bf81e1b..2180299bddb6612b8621c2df58184280d46546f0 100644
(file)
--- 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;
}