mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
clk: ICS8N3QV01 remove superfluous code
Do not calculate a unused value of n which is overwritten in both branches of the subsequent if statement. Identified by cppcheck. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Lukasz Majewski <lukma@denx.de>
This commit is contained in:
parent
c84341f5ac
commit
6befc1f900
1 changed files with 0 additions and 1 deletions
|
@ -82,7 +82,6 @@ static int ics8n3qv01_calc_parameters(uint fout, uint *_mint, uint *_mfrac,
|
|||
uint n, foutiic, fvcoiic, mint;
|
||||
u64 mfrac;
|
||||
|
||||
n = (2215000000U + fout / 2) / fout;
|
||||
if (fout < 417000000U)
|
||||
n = 2 * ((2215000000U / 2 + fout / 2) / fout);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue