mirror of
https://github.com/qemu/qemu.git
synced 2024-11-30 15:23:34 +08:00
migration: Add braces {} for if statement
Signed-off-by: Bihong Yu <yubihong@huawei.com> Reviewed-by: Chuan Zheng <zhengchuan@huawei.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <1603163448-27122-6-git-send-email-yubihong@huawei.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
f16aee44b4
commit
f4c51a6bfd
@ -101,15 +101,17 @@ static struct {
|
||||
|
||||
static void XBZRLE_cache_lock(void)
|
||||
{
|
||||
if (migrate_use_xbzrle())
|
||||
if (migrate_use_xbzrle()) {
|
||||
qemu_mutex_lock(&XBZRLE.lock);
|
||||
}
|
||||
}
|
||||
|
||||
static void XBZRLE_cache_unlock(void)
|
||||
{
|
||||
if (migrate_use_xbzrle())
|
||||
if (migrate_use_xbzrle()) {
|
||||
qemu_mutex_unlock(&XBZRLE.lock);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* xbzrle_cache_resize: resize the xbzrle cache
|
||||
|
Loading…
Reference in New Issue
Block a user