You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[media] stv090x: Remove an unreachable code
if STV090x_RANGEOK is not returned, then STV090x_OUTOFRANGE is returned. However, that part of the code is never reached, as pointed by smatch: drivers/media/dvb-frontends/stv090x.c:2673 stv090x_get_sig_params() info: ignoring unreachable code. So, remove the two uneeded elses, with makes the code a little bit cleaner. No functional changes, and one less smatch warning. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
@@ -2661,13 +2661,9 @@ static enum stv090x_signal_state stv090x_get_sig_params(struct stv090x_state *st
|
|||||||
return STV090x_RANGEOK;
|
return STV090x_RANGEOK;
|
||||||
else if (abs(offst_freq) <= (stv090x_car_width(state->srate, state->rolloff) / 2000))
|
else if (abs(offst_freq) <= (stv090x_car_width(state->srate, state->rolloff) / 2000))
|
||||||
return STV090x_RANGEOK;
|
return STV090x_RANGEOK;
|
||||||
else
|
|
||||||
return STV090x_OUTOFRANGE; /* Out of Range */
|
|
||||||
} else {
|
} else {
|
||||||
if (abs(offst_freq) <= ((state->search_range / 2000) + 500))
|
if (abs(offst_freq) <= ((state->search_range / 2000) + 500))
|
||||||
return STV090x_RANGEOK;
|
return STV090x_RANGEOK;
|
||||||
else
|
|
||||||
return STV090x_OUTOFRANGE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return STV090x_OUTOFRANGE;
|
return STV090x_OUTOFRANGE;
|
||||||
|
|||||||
Reference in New Issue
Block a user