aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/bt8xx
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-05-22 12:04:59 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-07-27 06:39:57 -0400
commitf2047d6044e530c05a618a33d1be09b1498f9e0b (patch)
treeaeed357700a8b1f5575fd57984b65f102bb6bb70 /drivers/media/pci/bt8xx
parentmedia: cx231xx: don't check number of messages in the driver (diff)
downloadlinux-dev-f2047d6044e530c05a618a33d1be09b1498f9e0b.tar.xz
linux-dev-f2047d6044e530c05a618a33d1be09b1498f9e0b.zip
media: dvb-bt8xx: remove duplicate code
The same code is executed regardless of whether c->frequency < 600000000 or c->frequency < 730000000 is true. This code was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/pci/bt8xx')
-rw-r--r--drivers/media/pci/bt8xx/dvb-bt8xx.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/pci/bt8xx/dvb-bt8xx.c b/drivers/media/pci/bt8xx/dvb-bt8xx.c
index 5ef6e2051d45..6b2a9e6eb6a8 100644
--- a/drivers/media/pci/bt8xx/dvb-bt8xx.c
+++ b/drivers/media/pci/bt8xx/dvb-bt8xx.c
@@ -386,10 +386,6 @@ static int advbt771_samsung_tdtc9251dh0_tuner_calc_regs(struct dvb_frontend *fe,
bs = 0x02;
else if (c->frequency < 470000000)
bs = 0x02;
- else if (c->frequency < 600000000)
- bs = 0x08;
- else if (c->frequency < 730000000)
- bs = 0x08;
else
bs = 0x08;