]> git.baikalelectronics.ru Git - kernel.git/commit
x86/ioperm: Initialize pointer bitmap with NULL rather than 0
authorColin Ian King <colin.king@canonical.com>
Tue, 21 Jul 2020 10:02:17 +0000 (11:02 +0100)
committerIngo Molnar <mingo@kernel.org>
Sun, 26 Jul 2020 17:52:55 +0000 (19:52 +0200)
commitf87ef6937e87fa01a620bc9572d53362d1af9293
tree51b598014d778f873560454296b21b75022de4ac
parenta857d4a9a8f2ff0763ae8eabefd4a22d68f6ed27
x86/ioperm: Initialize pointer bitmap with NULL rather than 0

The pointer bitmap is being initialized with a plain integer 0,
fix this by initializing it with a NULL instead.

Cleans up sparse warning:
arch/x86/xen/enlighten_pv.c:876:27: warning: Using plain integer
as NULL pointer

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20200721100217.407975-1-colin.king@canonical.com
arch/x86/xen/enlighten_pv.c