Skip to content

Commit d95947c

Browse files
seanyoungmchehab
authored andcommitted
media: dib7000p: Remove dead code
Clang warns that 'interleaving' is assigned to itself in this function. drivers/media/dvb-frontends/dib7000p.c:1874:15: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] interleaving = interleaving; ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~ 1 warning generated. Just remove the self-assign and leave existing code in place for now. Reported-by: Nick Desaulniers <ndesaulniers@google.com> Suggested-by: Nathan Chancellor <natechancellor@gmail.com> Reviewed-by: Nathan Chancellor <natechancellor@gmail.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
1 parent d695eb5 commit d95947c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/media/dvb-frontends/dib7000p.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,10 +1871,13 @@ static u32 dib7000p_get_time_us(struct dvb_frontend *demod)
18711871
break;
18721872
}
18731873

1874-
interleaving = interleaving;
1875-
18761874
denom = bits_per_symbol * rate_num * fft_div * 384;
18771875

1876+
/*
1877+
* FIXME: check if the math makes sense. If so, fill the
1878+
* interleaving var.
1879+
*/
1880+
18781881
/* If calculus gets wrong, wait for 1s for the next stats */
18791882
if (!denom)
18801883
return 0;

0 commit comments

Comments
 (0)