Skip to contentSkip to conversation

leds: Fix typo of || to && in drivers/leds/leds-pca9532.c

PATCH New Wei Yongjun 1 participant 1 message Feb 17, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 leds: Fix typo of || to && in drivers/leds/leds-pca9532.c

Fix the typo of || to &&.

---
 drivers/leds/leds-pca9532.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/leds/leds-pca9532.c +1 -1
index 76ec749..c4a1265 100644
@@ -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 */
Signature · 1 line
1.5.3.8