diff mbox

[2/2] video: mmp: Using plain integer as NULL pointer

Message ID 20131114081957.GC8150@elgon.mountain (mailing list archive)
State New, archived
Headers show

Commit Message

Dan Carpenter Nov. 14, 2013, 8:19 a.m. UTC
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>

--
To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Tomi Valkeinen Jan. 10, 2014, 11:31 a.m. UTC | #1
On 2013-11-14 10:19, Dan Carpenter wrote:
> 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>
> 
> diff --git a/drivers/video/mmp/core.c b/drivers/video/mmp/core.c
> index c8d4265..b563b92 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)
> 

Queued for 3.14.

 Tomi
diff mbox

Patch

diff --git a/drivers/video/mmp/core.c b/drivers/video/mmp/core.c
index c8d4265..b563b92 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)