diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2010-01-03 12:04:42 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:34 -0500 |
commit | ad695510bf27a4e73e0d04d48d80c0b8389f17d2 (patch) | |
tree | 82ab53a113f84c37f2a7ee92b4512537499e14b4 /drivers/media/video/saa7164/saa7164-api.c | |
parent | 19f48cb105b7fa18d0dcab435919a3a29b7a7c4c (diff) |
V4L/DVB (12930): Wrong variable tested
The return of saa7164_i2caddr_to_reglen() was not tested.
Cc: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7164/saa7164-api.c')
-rw-r--r-- | drivers/media/video/saa7164/saa7164-api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/saa7164/saa7164-api.c b/drivers/media/video/saa7164/saa7164-api.c index 6f094a96ac81..1d487c150340 100644 --- a/drivers/media/video/saa7164/saa7164-api.c +++ b/drivers/media/video/saa7164/saa7164-api.c | |||
@@ -523,7 +523,7 @@ int saa7164_api_i2c_write(struct saa7164_i2c *bus, u8 addr, u32 datalen, | |||
523 | } | 523 | } |
524 | 524 | ||
525 | reglen = saa7164_i2caddr_to_reglen(bus, addr); | 525 | reglen = saa7164_i2caddr_to_reglen(bus, addr); |
526 | if (unitid < 0) { | 526 | if (reglen < 0) { |
527 | printk(KERN_ERR | 527 | printk(KERN_ERR |
528 | "%s() error, cannot translate regaddr to reglen\n", | 528 | "%s() error, cannot translate regaddr to reglen\n", |
529 | __func__); | 529 | __func__); |