]> git.baikalelectronics.ru Git - kernel.git/commit
media: m88rs2000: handle the case where tuner doesn't have get_frequency
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 1 Nov 2017 21:05:58 +0000 (17:05 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 11 Dec 2017 18:04:56 +0000 (13:04 -0500)
commit8ad40db9c1f97d02d096e9d4f65c1eab79f9da47
treeab9e00fdf3be1d4a6b46a7596e0e1ae680344a22
parent7af9d8185a7760bcb6d6cc69877e3839f6d72f87
media: m88rs2000: handle the case where tuner doesn't have get_frequency

If the tuner doesn't have get_frequency() callback, the current
code will place a random value as the frequency offset. That
doesn't seem right! The better is to just assume that, on such
case, the tuner was able to set the exact frequency that was
requested.

Fixes a smatch warning:
drivers/media/dvb-frontends/m88rs2000.c:639 m88rs2000_set_frontend() error: uninitialized symbol 'tuner_freq'.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/m88rs2000.c