Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Daniel W. S. Almeida and committed by
Mauro Carvalho Chehab
ef4349eb e1f8807a

+2 -5
+2 -5
drivers/media/dvb-frontends/mb86a16.c
··· 1452 1452 wait_t = (786432 + state->srate / 2) / state->srate; 1453 1453 else 1454 1454 wait_t = (1572864 + state->srate / 2) / state->srate; 1455 - if (state->srate < 5000) 1456 - /* FIXME ! , should be a long wait ! */ 1457 - msleep_interruptible(wait_t); 1458 - else 1459 - msleep_interruptible(wait_t); 1455 + 1456 + msleep_interruptible(wait_t); 1460 1457 1461 1458 if (sync_chk(state, &junk) == 0) { 1462 1459 iq_vt_set(state, 1);