[PATCH] staging: &&/|| typo?

From: Roel Kluin
Date: Sat May 02 2009 - 16:47:03 EST


Fix &&/|| typo

Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx>
---
vi drivers/staging/go7007/wis-sony-tuner.c +218
#define MPX_NUM_MODES ARRAY_SIZE(mpx_audio_modes)

diff --git a/drivers/staging/go7007/wis-sony-tuner.c b/drivers/staging/go7007/wis-sony-tuner.c
index c965c60..086896c 100644
--- a/drivers/staging/go7007/wis-sony-tuner.c
+++ b/drivers/staging/go7007/wis-sony-tuner.c
@@ -370,7 +370,7 @@ static int set_if(struct i2c_client *client)
i2c_transfer(client->adapter, &msg, 1);

/* Select MPX mode if not forced by the user */
- if (force_mpx_mode >= 0 || force_mpx_mode < MPX_NUM_MODES)
+ if (force_mpx_mode >= 0 && force_mpx_mode < MPX_NUM_MODES)
t->mpxmode = force_mpx_mode;
else
t->mpxmode = default_mpx_mode;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/