[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LNX.1.10.0901100055050.5377@jikos.suse.cz>
Date: Sat, 10 Jan 2009 00:56:08 +0100 (CET)
From: Jiri Kosina <jkosina@...e.cz>
To: Alexey Zaytsev <alexey.zaytsev@...il.com>
cc: LKML <linux-kernel@...r.kernel.org>,
Trivial Kernel Patches <trivial@...nel.org>
Subject: Re: [PATCH 3/5] Fix dubious bitwise 'and' usage spotted by sparse.
On Sat, 10 Jan 2009, Alexey Zaytsev wrote:
> It doesn't change the semantics, but it looks like
> the logical 'and' was meant to be used here.
> ---
> drivers/media/video/gspca/m5602/m5602_s5k4aa.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/media/video/gspca/m5602/m5602_s5k4aa.c b/drivers/media/video/gspca/m5602/m5602_s5k4aa.c
> index 14b1eac..c3ebcca 100644
> --- a/drivers/media/video/gspca/m5602/m5602_s5k4aa.c
> +++ b/drivers/media/video/gspca/m5602/m5602_s5k4aa.c
> @@ -114,7 +114,7 @@ int s5k4aa_read_sensor(struct sd *sd, const u8 address,
> if (err < 0)
> goto out;
>
> - for (i = 0; (i < len) & !err; i++) {
> + for (i = 0; (i < len) && !err; i++) {
> err = m5602_read_bridge(sd, M5602_XB_I2C_DATA, &(i2c_data[i]));
>
> PDEBUG(D_CONF, "Reading sensor register "
Hi Alexey,
this one doesn't apply to Linus' tree anymore, the whole
s5k4aa_read_sensor() function is not there.
--
Jiri Kosina
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists