Message ID | 1602413863-19513-6-git-send-email-yubihong@huawei.com |
---|---|
State | Accepted |
Commit | f4c51a6bfdc0469f34cf53c803e15fc26f87238c |
Headers | show |
Series | Fix some style problems in migration | expand |
diff --git a/migration/ram.c b/migration/ram.c index 90b277b..12e7296 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -101,14 +101,16 @@ 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); + } } /**