Re: [PATCH v2] clk: hisilicon: Remove unnecessary local variable
From: Stephen Boyd
Date: Thu Aug 08 2024 - 15:53:22 EST
Quoting Thorsten Blum (2024-08-01 03:36:16)
> The local u64 variable refdiv_val has the same value as the local u32
> variable val and can be removed. Remove it and use val directly as the
> divisor to also remove the following Coccinelle/coccicheck warning
> reported by do_div.cocci:
>
> WARNING: do_div() does a 64-by-32 division, please consider using div64_u64 instead
>
> Use the preferred div_u64() function instead of the do_div() macro.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxxx>
> ---
Applied to clk-next