mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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:
committed by
Jan Höppner
parent
d2efda1ac2
commit
8efd4da53b
@@ -837,7 +837,7 @@ static int map_check(char *fn, int (*fct)(char *, unsigned char *, size_t,
|
||||
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) {
|
||||
warnx("%s cannot map file", fn);
|
||||
close(fd);
|
||||
|
||||
Reference in New Issue
Block a user