diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-11-20 19:34:13 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 21:41:45 +0100 |
commit | c95a419a5604ec8a23cd73f61e9bb151e8cbe89b (patch) | |
tree | 1acbac86a206c4ed86b37e392da671b970893721 /drivers/media/common/tuners/mxl5007t.c | |
parent | V4L/DVB (13410): firedtv: remove an unnecessary function argument (diff) | |
download | linux-c95a419a5604ec8a23cd73f61e9bb151e8cbe89b.tar.xz linux-c95a419a5604ec8a23cd73f61e9bb151e8cbe89b.zip |
V4L/DVB: Fix test in copy_reg_bits()
The reg_pair2[j].reg was tested twice.
Cc: <stable@kernel.org>
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/tuners/mxl5007t.c')
-rw-r--r-- | drivers/media/common/tuners/mxl5007t.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/mxl5007t.c b/drivers/media/common/tuners/mxl5007t.c index 2d02698d4f4f..7eb1bf75cd07 100644 --- a/drivers/media/common/tuners/mxl5007t.c +++ b/drivers/media/common/tuners/mxl5007t.c @@ -196,7 +196,7 @@ static void copy_reg_bits(struct reg_pair_t *reg_pair1, i = j = 0; while (reg_pair1[i].reg || reg_pair1[i].val) { - while (reg_pair2[j].reg || reg_pair2[j].reg) { + while (reg_pair2[j].reg || reg_pair2[j].val) { if (reg_pair1[i].reg != reg_pair2[j].reg) { j++; continue; |