summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMiles Chen <miles.chen@mediatek.com>2023-01-10 11:12:42 +0800
committerNeil Armstrong <neil.armstrong@linaro.org>2023-01-10 15:21:13 +0100
commitfcdc53aceed413dce3ef1d0166a8e9348d5a9c94 (patch)
treec023b398c1e5355829966e6ee29c81778a534dd9 /drivers
parentbc5998b92b9ee8818cc0f7fe02604751389a154e (diff)
firmware: meson_sm: stop using 0 as NULL pointer
Use NULL for NULL pointer to fix the following sparse warning: drivers/firmware/meson/meson_sm.c:85:24: sparse: warning: Using plain integer as NULL pointer Signed-off-by: Miles Chen <miles.chen@mediatek.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20230110031242.4917-1-miles.chen@mediatek.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/firmware/meson/meson_sm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/meson/meson_sm.c b/drivers/firmware/meson/meson_sm.c
index 77aa5c6398aa..3f5ff9ed668e 100644
--- a/drivers/firmware/meson/meson_sm.c
+++ b/drivers/firmware/meson/meson_sm.c
@@ -82,7 +82,7 @@ static void __iomem *meson_sm_map_shmem(u32 cmd_shmem, unsigned int size)
sm_phy_base = __meson_sm_call(cmd_shmem, 0, 0, 0, 0, 0);
if (!sm_phy_base)
- return 0;
+ return NULL;
return ioremap_cache(sm_phy_base, size);
}