]> git.baikalelectronics.ru Git - kernel.git/commit
[media] r820t: Remove a warning for an unused value
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 25 Apr 2013 18:40:21 +0000 (15:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 25 Apr 2013 19:07:04 +0000 (16:07 -0300)
commit7b20c3b2d642269ecfaa7f65dd4673e02f2c985d
tree2f23756954a93b3085c07dea7da52732cf2cdf08
parent593196ae0d122c2f193ae17813763dd03dc4c82e
[media] r820t: Remove a warning for an unused value

Currently, the driver complains about the pre_detect var:

drivers/media/tuners/r820t.c: In function 'r820t_sysfreq_sel':
drivers/media/tuners/r820t.c:722:31: warning: variable 'pre_dect' set but not used [-Wunused-but-set-variable]

While rtl8232 code comments it, perhaps some other driver may use.
So, the better is to keep the code there, allowing to enable it
via r820t config data.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/tuners/r820t.c
drivers/media/tuners/r820t.h