media: stv6110: get rid of a srate dead code
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 14 Sep 2017 11:44:19 +0000 (07:44 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 11 Oct 2017 16:49:20 +0000 (12:49 -0400)
commit282996925b4d78f9795d176f7fb409281c98d56d
tree938daf4323829679e228d9d10f55d86cfd61c422
parent473e4b4c1cf3046fc6b3437be9a9f3c89c2e61ef
media: stv6110: get rid of a srate dead code

The stv6110 has a weird code that checks if get_property
and set_property ioctls are defined. If they're, it initializes
a "srate" var from properties cache. Otherwise, it sets to
15MBaud, with won't make any sense.

Thankfully, it seems that someone else discovered the issue in
the past, as "srate" is currently not used anywhere!

So, get rid of that really weird dead code logic.

Reported-by: Honza Petrous <jpetrous@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/stv6110.c