From: "Erik Andrén" <erik.andren@gmail.com>
To: Roel Kluin <roel.kluin@gmail.com>
Cc: video4linux-list@redhat.com, mchehab@redhat.com
Subject: Re: [PATCH] V4L/DVB: gspca: &/&& typo
Date: Sat, 27 Dec 2008 21:07:10 +0100 [thread overview]
Message-ID: <49568AEE.20506@gmail.com> (raw)
In-Reply-To: <49564CF1.2060307@gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Roel Kluin wrote:
> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
> ---
> 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 "
>
Thanks Roel,
Current 2.6.29 ready code doesn't have this bug as the driver is
reworked. It's there in the 2.6.28 code but shouldn't pose a problem
as the err variable should normally evaluate itself to 0 which is
inverted to true (== 1?) thus as (1 < len) is evaluated to true the
statement should work as intended. I don't have hardware supporting
the s5k4aa but I replicated the bug with my ov9650 sensor code and
it still worked as intended.
Summary: Mauro, If you want to add this fix for 2.6.28, go ahead but
the current code 2.6.28 shouldn't prevent the driver from working
as intended. This is not an issue in the current gspca-m5602 tree.
Regards,
Erik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAklWiusACgkQN7qBt+4UG0EHLQCeK+lbrEM/upfGjcwQAQxSgNNG
SvEAmQGSHlgRJfxZX981jgHH8akpLsbM
=gpZy
-----END PGP SIGNATURE-----
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
parent reply other threads:[~2008-12-27 20:07 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <49564CF1.2060307@gmail.com>]
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=49568AEE.20506@gmail.com \
--to=erik.andren@gmail.com \
--cc=mchehab@redhat.com \
--cc=roel.kluin@gmail.com \
--cc=video4linux-list@redhat.com \
/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 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.