OSDN Git Service

selftests/mm: fix WARNING comparing pointer to 0
authorAnh Tuan Phan <tuananhlfc@gmail.com>
Thu, 17 Aug 2023 16:00:33 +0000 (23:00 +0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 24 Aug 2023 23:20:27 +0000 (16:20 -0700)
commitbad5a3a42a31859705baf39c4fc92173b2716760
tree66cd311d2b54a9e2d0889e358da777d928c74cf3
parent7131fd7e30b20c3de03ca5d674546675dfffce5f
selftests/mm: fix WARNING comparing pointer to 0

Remove comparing pointer to 0 to avoid this warning from coccinelle:

./tools/testing/selftests/mm/map_populate.c:80:16-17: WARNING comparing pointer to 0, suggest !E
./tools/testing/selftests/mm/map_populate.c:80:16-17: WARNING comparing pointer to 0

Link: https://lkml.kernel.org/r/20230817160033.90079-1-tuananhlfc@gmail.com
Signed-off-by: Anh Tuan Phan <tuananhlfc@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/map_populate.c