From: Gustavo A. R. Silva Date: Tue, 22 May 2018 16:04:59 +0000 (-0400) Subject: media: dvb-bt8xx: remove duplicate code X-Git-Tag: v5.15~8227^2~172 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2047d6044e530c05a618a33d1be09b1498f9e0b;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/bt8xx/dvb-bt8xx.c b/drivers/media/pci/bt8xx/dvb-bt8xx.c index 5ef6e20..6b2a9e6 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;