All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: most: video: Changed the return value integer to NULL
@ 2015-10-07 10:14 Shivani Bhardwaj
  2015-10-07 11:15 ` [Outreachy kernel] " Julia Lawall
  0 siblings, 1 reply; 6+ messages in thread
From: Shivani Bhardwaj @ 2015-10-07 10:14 UTC (permalink / raw)
  To: outreachy-kernel

Fixed the sparse warning : Using plain integer as NULL pointer, by
changing the return value of function *get_aim_dev(struct, int) from 0
to NULL.

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
---
 drivers/staging/most/aim-v4l2/video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/most/aim-v4l2/video.c b/drivers/staging/most/aim-v4l2/video.c
index d968791..8333245 100644
--- a/drivers/staging/most/aim-v4l2/video.c
+++ b/drivers/staging/most/aim-v4l2/video.c
@@ -430,7 +430,7 @@ static struct most_video_dev *get_aim_dev(
 		}
 	}
 	spin_unlock(&list_lock);
-	return 0;
+	return NULL;
 }
 
 static int aim_rx_data(struct mbo *mbo)
-- 
2.1.0



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

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-07 10:14 [PATCH] Staging: most: video: Changed the return value integer to NULL Shivani Bhardwaj
2015-10-07 11:15 ` [Outreachy kernel] " Julia Lawall
2015-10-07 11:30   ` Shivani Bhardwaj
2015-10-07 11:33     ` Julia Lawall
2015-10-07 11:36       ` Shivani Bhardwaj
2015-10-07 11:49         ` Sudip Mukherjee

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.