Skip to contentSkip to conversation

media: dvb-frontends: mb86a16.c: remove useless if/else

PATCH In review Daniel W. S. Almeida 1 participant 1 message Aug 7, 2020 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 13/20 media: dvb-frontends: mb86a16.c: remove useless if/else

From: "Daniel W. S. Almeida" <[email protected]>

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)

---
 drivers/media/dvb-frontends/mb86a16.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/media/dvb-frontends/mb86a16.c +2 -5
index 3843181bba16..2505f1e5794e 100644
@@ -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);
Signature · 1 line
2.28.0