Commit c115b13b authored by Zhangfei Gao's avatar Zhangfei Gao Committed by Mike Turquette

clk: hisilicon: fix warning from smatch

drivers/clk/hisilicon/clk-hi3620.c:338
mmc_clk_delay() warn: always true condition '(para >= 0) => (0-u32max >= 0)'
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarZhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent a665962e
......@@ -326,7 +326,6 @@ static u32 mmc_clk_delay(u32 val, u32 para, u32 off, u32 len)
{
u32 i;
if (para >= 0) {
for (i = 0; i < len; i++) {
if (para % 2)
val |= 1 << (off + i);
......@@ -334,7 +333,7 @@ static u32 mmc_clk_delay(u32 val, u32 para, u32 off, u32 len)
val &= ~(1 << (off + i));
para = para >> 1;
}
}
return val;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment