clk: ICS8N3QV01 remove superfluous code
PATCH 1/1 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.
--- drivers/clk/ics8n3qv01.c | 1 - 1 file changed, 1 deletion(-)
drivers/clk/ics8n3qv01.c +0 -1
@@ -81,7 +81,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
--
2.25.0
PATCH 1/1 clk: ICS8N3QV01 remove superfluous code
Quoted 23 lines · On Sat, 15 Feb 2020 21:27:38 +0100 Heinrich Schuchardt <[email protected]>…
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 <[email protected]>--- drivers/clk/ics8n3qv01.c | 1 - 1 file changed, 1 deletion(-)drivers/clk/ics8n3qv01.c +0
-2@@ -81,7 +81,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 --
Quoted 2 lines
2.25.0
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de -------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200216/67d79489/attachment.sig>
PATCH 1/1 clk: ICS8N3QV01 remove superfluous code
Quoted 6 lines · Lukasz Majewski
Quoted 3 lines · On Sat, 15 Feb 2020 21:27:38 +0100 Heinrich Schuchardt <[email protected]>…
Do not calculate a unused value of n which is overwritten in both branches of the subsequent if statement.
Quoted 7 lines
Quoted 7 lines
Identified by cppcheck.
Signed-off-by Heinrich Schuchardt <[email protected]>--- drivers/clk/ics8n3qv01.c | 1 - 1 file changed, 1 deletion(-)
<snip />
Quoted 2 lines
Reviewed-by Lukasz Majewski <[email protected]>
Hello Lukasz,
this patch reviewed by you in February is still not merged. Will you create a pull request for CLOCK, please?
You can download the patch from
https://patchwork.ozlabs.org/project/uboot/patch/20200215202738.15469-1-xypron.glpk at gmx.de/
Best regards
Heinrich