linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "G.Shark Jeong" <gshark.jeong@gmail.com>
To: Richard Purdie <rpurdie@rpsys.net>
Cc: Daniel Jeong <daniel.jeong@ti.com>,
	<linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	"G.Shark Jeong" <gshark.jeong@gmail.com>
Subject: [PATCH]backlight: lm3639: fix coccinelle warning.
Date: Thu,  8 Nov 2012 15:44:49 +0900	[thread overview]
Message-ID: <1352357089-4819-1-git-send-email-gshark.jeong@gmail.com> (raw)

From: "G.Shark Jeong" <gshark.jeong@gmail.com>

Fix coccinelle warning.

Signed-off-by: G.Shark Jeong <gshark.jeong@gmail.com>
---
 drivers/video/backlight/lm3639_bl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/video/backlight/lm3639_bl.c b/drivers/video/backlight/lm3639_bl.c
index 585949b..868a9da 100644
--- a/drivers/video/backlight/lm3639_bl.c
+++ b/drivers/video/backlight/lm3639_bl.c
@@ -403,9 +403,9 @@ static int __devexit lm3639_remove(struct i2c_client *client)
 
 	regmap_write(pchip->regmap, REG_ENABLE, 0x00);
 
-	if (&pchip->cdev_torch)
+	if ((&pchip->cdev_torch)!=NULL)
 		led_classdev_unregister(&pchip->cdev_torch);
-	if (&pchip->cdev_flash)
+	if ((&pchip->cdev_flash)!=NULL)
 		led_classdev_unregister(&pchip->cdev_flash);
 	if (pchip->bled) {
 		device_remove_file(&(pchip->bled->dev), &dev_attr_bled_mode);
-- 
1.7.5.4


             reply	other threads:[~2012-11-08  6:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-08  6:44 G.Shark Jeong [this message]
2012-11-08 20:27 ` [PATCH]backlight: lm3639: fix coccinelle warning Andrew Morton

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=1352357089-4819-1-git-send-email-gshark.jeong@gmail.com \
    --to=gshark.jeong@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=daniel.jeong@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rpurdie@rpsys.net \
    /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).