Commit 6fc19c40 authored by Dan Carpenter's avatar Dan Carpenter Committed by Tomi Valkeinen

video: mmp: 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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 4ac8bd61
...@@ -30,7 +30,7 @@ static struct mmp_overlay *path_get_overlay(struct mmp_path *path, ...@@ -30,7 +30,7 @@ static struct mmp_overlay *path_get_overlay(struct mmp_path *path,
{ {
if (path && overlay_id < path->overlay_num) if (path && overlay_id < path->overlay_num)
return &path->overlays[overlay_id]; return &path->overlays[overlay_id];
return 0; return NULL;
} }
static int path_check_status(struct mmp_path *path) static int path_check_status(struct mmp_path *path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment