cpumf/pai: Fix sparse warning for NULL pointer usage

Fix sparse warning by using NULL instead of integer literal for pointer.

Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Jan Polensky <japo@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Jan Polensky
2025-08-27 20:16:20 +02:00
committed by Jan Höppner
parent d2efda1ac2
commit 8efd4da53b

View File

@@ -837,7 +837,7 @@ static int map_check(char *fn, int (*fct)(char *, unsigned char *, size_t,
return 0; return 0;
} }
p = mmap(0, sb.st_size, PROT_READ, MAP_SHARED, fd, 0); p = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, fd, 0);
if (p == MAP_FAILED) { if (p == MAP_FAILED) {
warnx("%s cannot map file", fn); warnx("%s cannot map file", fn);
close(fd); close(fd);