aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/mb86a16.c
diff options
context:
space:
mode:
authorGravatar Daniel W. S. Almeida <dwlsalmeida@gmail.com> 2020-08-07 10:35:40 +0200
committerGravatar Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2020-08-29 08:02:46 +0200
commitef4349ebab1d68815805ce883f62ab833b5202d9 (patch)
tree6a8a7e93d379f7c86e55421629b164ffe9439f2f /drivers/media/dvb-frontends/mb86a16.c
parentmedia: usb: dib0700_devices.c: remove useless if/else (diff)
downloadlinux-ef4349ebab1d68815805ce883f62ab833b5202d9.tar.gz
linux-ef4349ebab1d68815805ce883f62ab833b5202d9.tar.bz2
linux-ef4349ebab1d68815805ce883f62ab833b5202d9.zip
media: dvb-frontends: mb86a16.c: remove useless if/else
Fix the following coccinelle report: drivers/media/dvb-frontends/mb86a16.c:1455:6-8: WARNING: possible condition with no effect (if == else) Both branches are the same, so remove the if/else altogether. Found using - Coccinelle (http://coccinelle.lip6.fr) Signed-off-by: Daniel W. S. Almeida <dwlsalmeida@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/dvb-frontends/mb86a16.c')
-rw-r--r--drivers/media/dvb-frontends/mb86a16.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/media/dvb-frontends/mb86a16.c b/drivers/media/dvb-frontends/mb86a16.c
index 3843181bba16..2505f1e5794e 100644
--- a/drivers/media/dvb-frontends/mb86a16.c
+++ b/drivers/media/dvb-frontends/mb86a16.c
@@ -1452,11 +1452,8 @@ static int mb86a16_set_fe(struct mb86a16_state *state)
wait_t = (786432 + state->srate / 2) / state->srate;
else
wait_t = (1572864 + state->srate / 2) / state->srate;
- if (state->srate < 5000)
- /* FIXME ! , should be a long wait ! */
- msleep_interruptible(wait_t);
- else
- msleep_interruptible(wait_t);
+
+ msleep_interruptible(wait_t);
if (sync_chk(state, &junk) == 0) {
iq_vt_set(state, 1);