All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anchal Jain <anchalj109@gmail.com>
To: outreachy-kernel@googlegroups.com
Cc: outreachy-kernel@googlegroups.com
Subject: [PATCH 1/6] staging: media: lirc: lirc_bt829.c: Remove the explicit NULL comparison
Date: Tue, 13 Sep 2016 15:02:46 +0530	[thread overview]
Message-ID: <6be9d24b82515d2758809431887a9b22b3fa61d8.1473758274.git.anchalj109@gmail.com> (raw)
In-Reply-To: <cover.1473758274.git.anchalj109@gmail.com>

CHECK: Remove the explicit NULL comparison

Signed-off-by: Anchal Jain <anchalj109@gmail.com>
---
 drivers/staging/media/lirc/lirc_bt829.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/media/lirc/lirc_bt829.c b/drivers/staging/media/lirc/lirc_bt829.c
index 44f5655..f740115 100644
--- a/drivers/staging/media/lirc/lirc_bt829.c
+++ b/drivers/staging/media/lirc/lirc_bt829.c
@@ -120,7 +120,7 @@ int init_module(void)
 	int rc;
 
 	pdev = do_pci_probe();
-	if (pdev == NULL)
+	if (!pdev)
 		return -ENODEV;
 
 	rc = pci_enable_device(pdev);
-- 
1.9.1



       reply	other threads:[~2016-09-13  9:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1473758274.git.anchalj109@gmail.com>
2016-09-13  9:32 ` Anchal Jain [this message]
2016-09-13  9:39   ` [Outreachy kernel] [PATCH 1/6] staging: media: lirc: lirc_bt829.c: Remove the explicit NULL comparison Julia Lawall
2016-09-13  9:36 ` [PATCH 2/6] staging: media: lirc: lirc_imon.c: Remove multiple blank lines Anchal Jain
2016-09-13  9:37 ` [PATCH 3/6] staging: media: lirc: lirc_imon.c: Remove a blank lines before a close brace '}' Anchal Jain
2016-09-13  9:38 ` [PATCH 4/6] staging: media: lirc: lirc_imon.c: Remove unnecessary space after a cast Anchal Jain
2016-09-13  9:40   ` [Outreachy kernel] " Julia Lawall
2016-09-13  9:43   ` Julia Lawall
2016-09-13  9:40 ` [PATCH 5/6] staging: media: lirc: lirc_imon.c: add space around the operators Anchal Jain
2016-09-13  9:41 ` [PATCH 6/6] staging: media: lirc: lirc_imon.c: Alignment should match open parenthesis Anchal Jain
2016-09-13  9:45   ` [Outreachy kernel] " Julia Lawall

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=6be9d24b82515d2758809431887a9b22b3fa61d8.1473758274.git.anchalj109@gmail.com \
    --to=anchalj109@gmail.com \
    --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.