]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Fix comparing pointer to 0 warning
authorKaixu Xia <kaixuxia@tencent.com>
Tue, 10 Nov 2020 02:56:01 +0000 (10:56 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Nov 2020 05:56:55 +0000 (16:56 +1100)
commit3d1a075c1b12870cb7a88f7af27b3d9f719680d1
tree0fb7b589fe4c66083cf6ec607d79bf2df24eeb23
parentd745995ff10546c8aa5c9d6c1122c8856b8ec3f4
powerpc/mm: Fix comparing pointer to 0 warning

Fixes coccicheck warning:

./arch/powerpc/mm/pgtable_32.c:87:11-12: WARNING comparing pointer to 0

Avoid pointer type value compared to 0.

Reported-by: Tosk Robot <tencent_os_robot@tencent.com>
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1604976961-20441-1-git-send-email-kaixuxia@tencent.com
arch/powerpc/mm/pgtable_32.c