diff options
author | Changlong Xie <xiecl.fnst@cn.fujitsu.com> | 2016-06-23 16:57:20 +0800 |
---|---|---|
committer | Jeff Cody <jcody@redhat.com> | 2016-06-28 23:08:13 -0400 |
commit | b48100cf07c94f66feef6886d3697eac8635bce4 (patch) | |
tree | 13d54f6367e22bdf927cce40861d41713ad762d3 /block/backup.c | |
parent | ccee3d8f97781515ed40356f1e6a7a233dd466b8 (diff) | |
download | qemu-b48100cf07c94f66feef6886d3697eac8635bce4.zip qemu-b48100cf07c94f66feef6886d3697eac8635bce4.tar.gz qemu-b48100cf07c94f66feef6886d3697eac8635bce4.tar.bz2 |
blockjob: assert(cb) when create job
Callback for block job should always exist
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Changlong Xie <xiecl.fnst@cn.fujitsu.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Message-id: 1466672241-22485-2-git-send-email-xiecl.fnst@cn.fujitsu.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'block/backup.c')
-rw-r--r-- | block/backup.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/block/backup.c b/block/backup.c index 581269b..f87f8d5 100644 --- a/block/backup.c +++ b/block/backup.c @@ -489,7 +489,6 @@ void backup_start(BlockDriverState *bs, BlockDriverState *target, assert(bs); assert(target); - assert(cb); if (bs == target) { error_setg(errp, "Source and target cannot be the same"); |