From ef6e72d1276a00256a28ea3dafcc8798d7f23ae7 Mon Sep 17 00:00:00 2001 From: Stricted Date: Sat, 19 Jun 2021 23:13:05 +0000 Subject: [PATCH] media: dvb-frontends: Fix self assign warning Change-Id: Ie343bf04cdc1843395663d1ac5a09cd3a49a43ca --- drivers/media/dvb-frontends/dib7000p.c | 2 -- drivers/media/dvb-frontends/drxd_hard.c | 6 +++--- drivers/media/dvb-frontends/stb0899_algo.c | 1 - drivers/media/dvb-frontends/stv0367.c | 1 - drivers/media/dvb-frontends/tda18271c2dd.c | 1 - 5 files changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/media/dvb-frontends/dib7000p.c b/drivers/media/dvb-frontends/dib7000p.c index b861d4437f2a..206f1014779c 100644 --- a/drivers/media/dvb-frontends/dib7000p.c +++ b/drivers/media/dvb-frontends/dib7000p.c @@ -1855,8 +1855,6 @@ static u32 dib7000p_get_time_us(struct dvb_frontend *demod) break; } - interleaving = interleaving; - denom = bits_per_symbol * rate_num * fft_div * 384; /* If calculus gets wrong, wait for 1s for the next stats */ diff --git a/drivers/media/dvb-frontends/drxd_hard.c b/drivers/media/dvb-frontends/drxd_hard.c index dc19ca04c097..07530d3ba6f4 100644 --- a/drivers/media/dvb-frontends/drxd_hard.c +++ b/drivers/media/dvb-frontends/drxd_hard.c @@ -2140,7 +2140,7 @@ static int DRX_Start(struct drxd_state *state, s32 off) } break; } - status = status; + if (status < 0) break; @@ -2251,7 +2251,7 @@ static int DRX_Start(struct drxd_state *state, s32 off) break; } - status = status; + if (status < 0) break; @@ -2317,7 +2317,7 @@ static int DRX_Start(struct drxd_state *state, s32 off) } break; } - status = status; + if (status < 0) break; diff --git a/drivers/media/dvb-frontends/stb0899_algo.c b/drivers/media/dvb-frontends/stb0899_algo.c index 3012f196e9bd..14aab2285ecd 100644 --- a/drivers/media/dvb-frontends/stb0899_algo.c +++ b/drivers/media/dvb-frontends/stb0899_algo.c @@ -926,7 +926,6 @@ static void stb0899_dvbs2_set_btr_loopbw(struct stb0899_state *state) wn = (2 * (loopbw_percent * 1000) * 40 * zeta) /wn; /*wn =wn 10^-8*/ k_indirect = (wn * wn) / K; - k_indirect = k_indirect; /*kindirect = kindirect 10^-6*/ k_direct = (2 * wn * zeta) / K; /*kDirect = kDirect 10^-2*/ k_direct *= 100; diff --git a/drivers/media/dvb-frontends/stv0367.c b/drivers/media/dvb-frontends/stv0367.c index 94cec81d0a5c..81e70c01b568 100644 --- a/drivers/media/dvb-frontends/stv0367.c +++ b/drivers/media/dvb-frontends/stv0367.c @@ -2132,7 +2132,6 @@ static int stv0367ter_read_ber(struct dvb_frontend *fe, u32 *ber) } else if (abc == 0x7) { if (Errors <= 4) { temporary = (Errors * 1000000000) / (8 * (1 << 14)); - temporary = temporary; } else if (Errors <= 42) { temporary = (Errors * 100000000) / (8 * (1 << 14)); temporary = temporary * 10; diff --git a/drivers/media/dvb-frontends/tda18271c2dd.c b/drivers/media/dvb-frontends/tda18271c2dd.c index bc247f9b553a..cf432e67c813 100644 --- a/drivers/media/dvb-frontends/tda18271c2dd.c +++ b/drivers/media/dvb-frontends/tda18271c2dd.c @@ -678,7 +678,6 @@ static int PowerScan(struct tda_state *state, Count = 200000; wait = true; } - status = status; if (status < 0) break; if (CID_Gain >= CID_Target) { -- 2.20.1