From fe1d6f6b54a58e99fd309cffc40e81420fa9715c Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 17 Dec 2013 10:44:52 +1100 Subject: [PATCH] drivers/video/mmp/core.c: using plain integer as NULL pointer Sparse complains here: drivers/video/mmp/core.c:33:16: warning: Using plain integer as NULL pointer Signed-off-by: Dan Carpenter Cc: Jean-Christophe Plagniol-Villard Cc: Tomi Valkeinen Cc: Haojian Zhuang Cc: Andrei Epure Cc: Lisa Du Cc: Zhou Zhu Signed-off-by: Andrew Morton --- drivers/video/mmp/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/mmp/core.c b/drivers/video/mmp/core.c index c8d426541612..b563b920f159 100644 --- a/drivers/video/mmp/core.c +++ b/drivers/video/mmp/core.c @@ -30,7 +30,7 @@ static struct mmp_overlay *path_get_overlay(struct mmp_path *path, { if (path && overlay_id < path->overlay_num) return &path->overlays[overlay_id]; - return 0; + return NULL; } static int path_check_status(struct mmp_path *path) -- 2.39.5