From: shyam saini <mayhs11saini@gmail.com>
To: labbott@redhat.com
Cc: sumit.semwal@linaro.org, gregkh@linuxfoundation.org,
linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org,
arve@android.com, shyam saini <mayhs11saini@gmail.com>
Subject: [PATCH 1/1] Staging: android: ion: Remove explicit NULL comparison using Coccinelle
Date: Wed, 28 Sep 2016 20:58:51 +0530 [thread overview]
Message-ID: <1475076531-4863-1-git-send-email-mayhs11saini@gmail.com> (raw)
Remove the explicit NULL comparison and rewrite in a compact form.
Signed-off-by: shyam saini <mayhs11saini@gmail.com>
---
drivers/staging/android/ion/ion_of.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/android/ion/ion_of.c b/drivers/staging/android/ion/ion_of.c
index 01f3067..485fb0f 100644
--- a/drivers/staging/android/ion/ion_of.c
+++ b/drivers/staging/android/ion/ion_of.c
@@ -36,7 +36,7 @@ int ion_parse_dt_heap_common(struct device_node *heap_node,
break;
}
- if (compatible[i].name == NULL)
+ if (!compatible[i].name)
return -ENODEV;
heap->id = compatible[i].heap_id;
--
2.7.4
next reply other threads:[~2016-09-28 15:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-28 15:28 shyam saini [this message]
2016-10-02 14:58 ` [PATCH 1/1] Staging: android: ion: Remove explicit NULL comparison using Coccinelle Greg KH
2016-10-02 15:21 ` Shyam Saini
2016-10-02 15:37 ` Greg KH
2016-10-02 16:07 ` Shyam Saini
2016-10-02 16:16 ` 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=1475076531-4863-1-git-send-email-mayhs11saini@gmail.com \
--to=mayhs11saini@gmail.com \
--cc=arve@android.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=labbott@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sumit.semwal@linaro.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).