aboutsummaryrefslogtreecommitdiff
path: root/qemu-tool.c
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-tool.c')
-rw-r--r--qemu-tool.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/qemu-tool.c b/qemu-tool.c
index c0b1cad669..4dda5af58b 100644
--- a/qemu-tool.c
+++ b/qemu-tool.c
@@ -43,10 +43,8 @@ QEMUBH *qemu_bh_new(QEMUBHFunc *cb, void *opaque)
QEMUBH *bh;
bh = qemu_malloc(sizeof(*bh));
- if (bh) {
- bh->cb = cb;
- bh->opaque = opaque;
- }
+ bh->cb = cb;
+ bh->opaque = opaque;
return bh;
}