Re: [PATCH] clk: Delete redundant logic.
From: jiping huang
Date: Mon Aug 26 2024 - 10:51:56 EST
I'm very sorry, my submitted description may not have expressed it clearly.
Actually, it is, the local variable 'best_crent_rate' is only used in line 2355 \
for the judgment 'best_crent_rate!=parent ->rate'. However, if the \
"if (clk_core_can_round (core))" branch condition in line 2306 is true, \
the value of the local variable "best_crent_rate" will be updated by \
"best_crent_rate=req.best_crent_rate;" in line 2319, otherwise it will \
be directly returned in the "else if" branch in line 2325 and the "else" branch \
in line 2329.
In summary, it is unnecessary to store the "parent ->rate" value in "best_crent_rate" in line 2301.