Skip to content

Commit 90fc739

Browse files
Colin Ian KingIngo Molnar
authored andcommitted
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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2d65685 commit 90fc739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/xen/enlighten_pv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ static void xen_load_sp0(unsigned long sp0)
873873
static void xen_invalidate_io_bitmap(void)
874874
{
875875
struct physdev_set_iobitmap iobitmap = {
876-
.bitmap = 0,
876+
.bitmap = NULL,
877877
.nr_ports = 0,
878878
};
879879

0 commit comments

Comments
 (0)