mirror of https://gitee.com/openkylin/qemu.git
tests/qapi: use QEMU_IS_ALIGNED macro
Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
f96c18965c
commit
9a6555e21a
|
@ -572,7 +572,7 @@ static void init_native_list(UserDefNativeListUnion *cvalue)
|
|||
boolList **list = &cvalue->u.boolean.data;
|
||||
for (i = 0; i < 32; i++) {
|
||||
*list = g_new0(boolList, 1);
|
||||
(*list)->value = (i % 3 == 0);
|
||||
(*list)->value = QEMU_IS_ALIGNED(i, 3);
|
||||
(*list)->next = NULL;
|
||||
list = &(*list)->next;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue