sparc32: Fix comparing pointer to 0 coccicheck warning
authorKaixu Xia <kaixuxia@tencent.com>
Mon, 9 Nov 2020 08:06:56 +0000 (16:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Feb 2021 00:32:01 +0000 (16:32 -0800)
commit76962e03934e1a77795852c1d64bd8491a00fb52
tree8bb88e01831d915846ed1b850d0d95d13ab7c8ed
parentb3554aa2470b5db1222c31e08ec9c29ab33eabc7
sparc32: Fix comparing pointer to 0 coccicheck warning

Fixes coccicheck warning:

/arch/sparc/mm/srmmu.c:354:42-43: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/srmmu.c