public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: Delete redundant logic.
@ 2024-08-26  8:29 jiping huang
  2024-08-26  9:40 ` Vladimir Zapolskiy
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: jiping huang @ 2024-08-26  8:29 UTC (permalink / raw)
  To: mturquette, sboyd; +Cc: linux-clk, linux-kernel, jiping huang

In fact, the local variable "best_parent_rate" saved at the function
entrance is not used later on.

Signed-off-by: jiping huang <huangjiping95@qq.com>

diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 8cca52be993f..d076939c42ab 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -2295,11 +2295,6 @@ static struct clk_core *clk_calc_new_rates(struct clk_core *core,
 	if (IS_ERR_OR_NULL(core))
 		return NULL;
 
-	/* save parent rate, if it exists */
-	parent = old_parent = core->parent;
-	if (parent)
-		best_parent_rate = parent->rate;
-
 	clk_core_get_boundaries(core, &min_rate, &max_rate);
 
 	/* find the closest rate and parent clk/rate */
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-08-29  9:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-26  8:29 [PATCH] clk: Delete redundant logic jiping huang
2024-08-26  9:40 ` Vladimir Zapolskiy
2024-08-26 14:45   ` jiping huang
2024-08-27 10:37 ` kernel test robot
2024-08-29  9:52 ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox