mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
5375659a3d
commit
c95a419a56
|
@ -196,7 +196,7 @@ static void copy_reg_bits(struct reg_pair_t *reg_pair1,
|
||||||
i = j = 0;
|
i = j = 0;
|
||||||
|
|
||||||
while (reg_pair1[i].reg || reg_pair1[i].val) {
|
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) {
|
if (reg_pair1[i].reg != reg_pair2[j].reg) {
|
||||||
j++;
|
j++;
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue