diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-02-15 23:27:38 +0300 |
---|---|---|
committer | Lukasz Majewski <lukma@denx.de> | 2020-08-24 12:03:26 +0300 |
commit | 6befc1f900db638ae54ea1bbab51a42cd1d5a153 (patch) | |
tree | 97b67323cd28bb19aec03f7590a07ad7450cba0d /drivers/clk | |
parent | c84341f5acd6140f361300f02b354a7238f95b72 (diff) | |
download | u-boot-6befc1f900db638ae54ea1bbab51a42cd1d5a153.tar.xz |
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>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/ics8n3qv01.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/clk/ics8n3qv01.c b/drivers/clk/ics8n3qv01.c index 4f80bf6e52..76b27ad7fd 100644 --- a/drivers/clk/ics8n3qv01.c +++ b/drivers/clk/ics8n3qv01.c @@ -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 |