aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@toblux.com>2024-08-01 12:36:16 +0200
committerStephen Boyd <sboyd@kernel.org>2024-08-08 12:48:33 -0700
commitde7aeb5dddd484a9b840dcb53449e5c15f5d3e97 (patch)
treeaf56a58d5ec566ee4e4e4da5a756dd7ea5c26393 /tools/perf/scripts/python/exported-sql-viewer.py
parentec562c9a9ec27c4e31bdcaa84c67fa49f59454a6 (diff)
clk: hisilicon: Remove unnecessary local variable
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@toblux.com> Link: https://lore.kernel.org/r/20240801103616.20430-1-thorsten.blum@toblux.com Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions