summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-11-14 11:19:57 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-01-17 10:57:48 +0200
commit6fc19c40be96df73d81d8123e31fe45c16c6c2b6 (patch)
treef06cbcbf13a4f0c36dedc8b6411c690d0c5b8844 /drivers/video
parent4ac8bd618b6c70fbc043c82f95d2d9b529c57109 (diff)
downloadlinux-6fc19c40be96df73d81d8123e31fe45c16c6c2b6.tar.bz2
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: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/mmp/core.c2
1 files changed, 1 insertions, 1 deletions
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)