Message ID | 20131114081957.GC8150@elgon.mountain (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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 --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)
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