summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2017-08-18 03:23:44 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-27 13:51:30 +0200
commit87c014867181c3ec6e20bf3e71db37939d1782c7 (patch)
tree935d1c894a09eca67cd60090d719632e0c4bea9c /drivers/media/dvb-frontends
parentmedia: mx2_emmaprp: Check for platform_get_irq() error (diff)
downloadlinux-87c014867181c3ec6e20bf3e71db37939d1782c7.tar.xz
linux-87c014867181c3ec6e20bf3e71db37939d1782c7.zip
media: dib0090: fix duplicated code for different branches
Refactor code in order to avoid identical code for different branches. This issue was detected with the help of Coccinelle. Addresses-Coverity-ID: 1226795 Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r--drivers/media/dvb-frontends/dib0090.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/media/dvb-frontends/dib0090.c b/drivers/media/dvb-frontends/dib0090.c
index ae53a199b7af..d9d730dfe0b1 100644
--- a/drivers/media/dvb-frontends/dib0090.c
+++ b/drivers/media/dvb-frontends/dib0090.c
@@ -2435,14 +2435,7 @@ static int dib0090_tune(struct dvb_frontend *fe)
Den = 1;
if (Rest > 0) {
- if (state->config->analog_output)
- lo6 |= (1 << 2) | 2;
- else {
- if (state->identity.in_soc)
- lo6 |= (1 << 2) | 2;
- else
- lo6 |= (1 << 2) | 2;
- }
+ lo6 |= (1 << 2) | 2;
Den = 255;
}
dib0090_write_reg(state, 0x15, (u16) FBDiv);