From: Sandhya Bankar <bankarsandhya512@gmail.com>
To: outreachy-kernel@googlegroups.com
Cc: gregkh@linuxfoundation.org
Subject: [PATCH v2] Staging: i4l: Return NULL instead of 0.
Date: Sat, 17 Sep 2016 12:47:02 +0530 [thread overview]
Message-ID: <20160917071702.GA16260@sandhya> (raw)
Return NULL instead of 0, if card with given driverId is not found.
Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
---
Changes in v2:
* Correcting commit message
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
next reply other threads:[~2016-09-17 18:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-17 7:17 Sandhya Bankar [this message]
2016-09-17 19:20 ` [Outreachy kernel] [PATCH v2] Staging: i4l: Return NULL instead of 0 Julia Lawall
2016-09-17 21:15 ` Alison Schofield
2016-09-17 21:24 ` Alison Schofield
2016-09-17 21:36 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160917071702.GA16260@sandhya \
--to=bankarsandhya512@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=outreachy-kernel@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.