aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.h
diff options
context:
space:
mode:
authorStephen Boyd <[email protected]>2023-06-13 12:54:42 -0700
committerStephen Boyd <[email protected]>2023-06-14 12:43:26 -0700
commit587dd448d9fcfb53486197c9c4bf5be99c75fb7c (patch)
treed5473d2f13a0b97104efdecaebab66d037f57f5b /lib/mpi/mpi-inline.h
parent3e253b21693d08126c828cddcb4fd3949898f773 (diff)
clk: sprd: composite: Simplify determine_rate implementation
The sprd_div_helper_round_rate() function calls divider_round_rate() which calls divider_round_rate_parent() which calls divider_determine_rate(). This call chain converts back and forth from the rate request structure to make a determine_rate clk_op fit with a round_rate clk_op. Simplify the code here by directly calling divider_determine_rate() instead. This fixes a smatch warning where an unsigned long is compared to less than zero, which is impossible. This makes sprd_div_helper_round_rate() unnecessary as well so simply remove it and fold it into the only caller left. Reported-by: Harshit Mogalapalli <[email protected]> Closes: https://lore.kernel.org/r/[email protected] Cc: Maxime Ripard <[email protected]> Fixes: 302d2f836d78 ("clk: sprd: composite: Switch to determine_rate") Signed-off-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Maxime Ripard <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions