All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [media] V4L: Use NULL pointer instead of plain integer in v4l2-ctrls.c file
@ 2012-07-10 11:14 Sachin Kamat
  2012-07-10 11:27 ` Hans Verkuil
  0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2012-07-10 11:14 UTC (permalink / raw)
  To: linux-media; +Cc: mchehab, g.liakhovetski, sachin.kamat, patches

Fixes the following sparse warning:
drivers/media/video/v4l2-ctrls.c:2123:43: warning: Using plain integer as NULL pointer

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/media/video/v4l2-ctrls.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/v4l2-ctrls.c b/drivers/media/video/v4l2-ctrls.c
index 9abd9ab..18101d6 100644
--- a/drivers/media/video/v4l2-ctrls.c
+++ b/drivers/media/video/v4l2-ctrls.c
@@ -2120,7 +2120,7 @@ static int prepare_ext_ctrls(struct v4l2_ctrl_handler *hdl,
 
 	/* First zero the helper field in the master control references */
 	for (i = 0; i < cs->count; i++)
-		helpers[i].mref->helper = 0;
+		helpers[i].mref->helper = NULL;
 	for (i = 0, h = helpers; i < cs->count; i++, h++) {
 		struct v4l2_ctrl_ref *mref = h->mref;
 
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] [media] V4L: Use NULL pointer instead of plain integer in v4l2-ctrls.c file
  2012-07-10 11:14 [PATCH] [media] V4L: Use NULL pointer instead of plain integer in v4l2-ctrls.c file Sachin Kamat
@ 2012-07-10 11:27 ` Hans Verkuil
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Verkuil @ 2012-07-10 11:27 UTC (permalink / raw)
  To: Sachin Kamat; +Cc: linux-media, mchehab, g.liakhovetski, patches

On Tue 10 July 2012 13:14:46 Sachin Kamat wrote:
> Fixes the following sparse warning:
> drivers/media/video/v4l2-ctrls.c:2123:43: warning: Using plain integer as NULL pointer
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>

Acked-by: Hans Verkuil <hans.verkuil@cisco.com>

> ---
>  drivers/media/video/v4l2-ctrls.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/media/video/v4l2-ctrls.c b/drivers/media/video/v4l2-ctrls.c
> index 9abd9ab..18101d6 100644
> --- a/drivers/media/video/v4l2-ctrls.c
> +++ b/drivers/media/video/v4l2-ctrls.c
> @@ -2120,7 +2120,7 @@ static int prepare_ext_ctrls(struct v4l2_ctrl_handler *hdl,
>  
>  	/* First zero the helper field in the master control references */
>  	for (i = 0; i < cs->count; i++)
> -		helpers[i].mref->helper = 0;
> +		helpers[i].mref->helper = NULL;
>  	for (i = 0, h = helpers; i < cs->count; i++, h++) {
>  		struct v4l2_ctrl_ref *mref = h->mref;
>  
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-10 11:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-10 11:14 [PATCH] [media] V4L: Use NULL pointer instead of plain integer in v4l2-ctrls.c file Sachin Kamat
2012-07-10 11:27 ` Hans Verkuil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.