Skip to content
Snippets Groups Projects
Commit 01a6df1b authored by Philippe Mathieu-Daudé's avatar Philippe Mathieu-Daudé Committed by Michael Tokarev
Browse files

qga: use ARRAY_SIZE macro


Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci

Signed-off-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
Reviewed-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
parent e5dd9875
No related branches found
No related tags found
No related merge requests found
......@@ -901,7 +901,7 @@ static void build_guest_fsinfo_for_real_device(char const *syspath,
if (p && sscanf(q, "%u", &host) == 1) {
has_host = true;
nhosts = build_hosts(syspath, p, has_ata, hosts,
sizeof(hosts) / sizeof(hosts[0]), errp);
ARRAY_SIZE(hosts), errp);
if (nhosts < 0) {
goto cleanup;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment