]> git.baikalelectronics.ru Git - kernel.git/commit
[media] rtl2832.c: minor cleanup
authorHans-Frieder Vogt <hfvogt@gmx.net>
Sun, 15 Jul 2012 16:56:47 +0000 (13:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 31 Jul 2012 00:55:14 +0000 (21:55 -0300)
commit5b84867b510c863d66c5b00555727eaba3493c49
treed502bfe4a77bfca8061cc25fa71afb2cbda1920c
parent7f57e71e0bdb9e21e02646628067f27f3f610b8b
[media] rtl2832.c: minor cleanup

The current formulation of the bw_params loop uses the counter j as an
index for the first dimension of the bw_params array which is later
incremented by the variable i. It is evaluated correctly only, because j
is initialized to 0 at the beginning of the loop. I think that
explicitly using the index 0 better reflects the intent of the
expression.

Signed-off-by: Hans-Frieder Vogt <hfvogt@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/rtl2832.c