Re: [PATCH] drm/tegra: hub: Use fn parameter directly to fix Coccinelle warning

2024-08-28 Thread Thierry Reding
On Wed, Jul 10, 2024 at 11:00:35PM GMT, Thorsten Blum wrote: > The function parameter out can be used directly instead of assigning it > to a temporary u64 variable first. > > Remove the local variable tmp2 and use the parameter out directly as the > divisor in do_div() to remove the following Coc

[PATCH] drm/tegra: hub: Use fn parameter directly to fix Coccinelle warning

2024-07-10 Thread Thorsten Blum
The function parameter out can be used directly instead of assigning it to a temporary u64 variable first. Remove the local variable tmp2 and use the parameter out directly as the divisor in do_div() to remove the following Coccinelle/coccicheck warning reported by do_div.cocci: WARNING: do_div