All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: i4l: Return NULL instead of 0.
@ 2016-09-17  1:30 Sandhya Bankar
  2016-09-17 17:06 ` [Outreachy kernel] " Julia Lawall
  0 siblings, 1 reply; 2+ messages in thread
From: Sandhya Bankar @ 2016-09-17  1:30 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: gregkh

Return NULL instead of 0,if card with given driverId is not found.

Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
---
 drivers/staging/i4l/act2000/module.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/i4l/act2000/module.c b/drivers/staging/i4l/act2000/module.c
index 39a8940..6a6c911 100755
--- a/drivers/staging/i4l/act2000/module.c
+++ b/drivers/staging/i4l/act2000/module.c
@@ -499,7 +499,7 @@ act2000_findcard(int driverid)
 			return p;
 		p = p->next;
 	}
-	return (act2000_card *) 0;
+	return NULL;
 }
 
 /*
-- 
1.7.1



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

end of thread, other threads:[~2016-09-17 17:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-17  1:30 [PATCH] Staging: i4l: Return NULL instead of 0 Sandhya Bankar
2016-09-17 17:06 ` [Outreachy kernel] " Julia Lawall

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.