projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c84341f
)
clk: ICS8N3QV01 remove superfluous code
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sat, 15 Feb 2020 20:27:38 +0000
(21:27 +0100)
committer
Lukasz Majewski
<lukma@denx.de>
Mon, 24 Aug 2020 09:03:26 +0000
(11:03 +0200)
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>
drivers/clk/ics8n3qv01.c
patch
|
blob
|
history
diff --git
a/drivers/clk/ics8n3qv01.c
b/drivers/clk/ics8n3qv01.c
index 4f80bf6e5223c2e6bb3b106855b94f4a77453937..76b27ad7fd0e6b288260ae5ab37cf48d90ee0166 100644
(file)
--- 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