All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] leds: Fix typo of || to && in drivers/leds/leds-pca9532.c
@ 2009-02-17  5:17 Wei Yongjun
  0 siblings, 0 replies; only message in thread
From: Wei Yongjun @ 2009-02-17  5:17 UTC (permalink / raw)
  To: Richard Purdie; +Cc: LKML

Fix the typo of || to &&.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
---
 drivers/leds/leds-pca9532.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/leds/leds-pca9532.c b/drivers/leds/leds-pca9532.c
index 76ec749..c4a1265 100644
--- a/drivers/leds/leds-pca9532.c
+++ b/drivers/leds/leds-pca9532.c
@@ -169,7 +169,7 @@ static int pca9532_event(struct input_dev *dev, unsigned int type,
 {
 	struct pca9532_data *data = input_get_drvdata(dev);
 
-	if (type != EV_SND && (code != SND_BELL || code != SND_TONE))
+	if (type != EV_SND && code != SND_BELL && code != SND_TONE)
 		return -1;
 
 	/* XXX: allow different kind of beeps with psc/pwm modifications */
-- 
1.5.3.8





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-17  5:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-17  5:17 [PATCH] leds: Fix typo of || to && in drivers/leds/leds-pca9532.c Wei Yongjun

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.