Re: [PATCH] clk: axi-clkgen: Remove sometimes impossible check

2016-01-30 Thread Lars-Peter Clausen
On 01/30/2016 02:13 AM, Stephen Boyd wrote: > The size of unsigned long on 64-bit architectures is equal to the > size of u64, so this check is impossible there. This throws off > static checkers: > > drivers/clk/clk-axi-clkgen.c:331 axi_clkgen_recalc_rate() warn: > impossible condition '(tmp > (~

[PATCH] clk: axi-clkgen: Remove sometimes impossible check

2016-01-29 Thread Stephen Boyd
The size of unsigned long on 64-bit architectures is equal to the size of u64, so this check is impossible there. This throws off static checkers: drivers/clk/clk-axi-clkgen.c:331 axi_clkgen_recalc_rate() warn: impossible condition '(tmp > (~0)) => (0-u64max > u64max)' Let's change this code to u