From: Marc-André Lureau Mostly for readability. Signed-off-by: Marc-André Lureau --- system/ram-block-attributes.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/system/ram-block-attributes.c b/system/ram-block-attributes.c index fb7c5c27467..9f72a6b3545 100644 --- a/system/ram-block-attributes.c +++ b/system/ram-block-attributes.c @@ -401,8 +401,7 @@ RamBlockAttributes *ram_block_attributes_create(RAMBlock *ram_block) object_unref(OBJECT(attr)); return NULL; } - attr->bitmap_size = - ROUND_UP(int128_get64(mr->size), block_size) / block_size; + attr->bitmap_size = DIV_ROUND_UP(int128_get64(mr->size), block_size); attr->bitmap = bitmap_new(attr->bitmap_size); return attr; -- 2.52.0