mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 00:51:44 +00:00
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;
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user