mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
clk: at91: clk-sam9x60-pll: remove unused variable
Fix variable set but not used compilation warning.
Fixes: 43b1bb4a9b
("clk: at91: clk-sam9x60-pll: re-factor to support plls with multiple outputs")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/1598338751-20607-4-git-send-email-claudiu.beznea@microchip.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
85d071e7f1
commit
c6968ac08d
1 changed files with 1 additions and 2 deletions
|
@ -331,7 +331,7 @@ static long sam9x60_div_pll_compute_div(struct sam9x60_pll_core *core,
|
||||||
struct clk_hw *parent = clk_hw_get_parent(&core->hw);
|
struct clk_hw *parent = clk_hw_get_parent(&core->hw);
|
||||||
unsigned long tmp_rate, tmp_parent_rate, tmp_diff;
|
unsigned long tmp_rate, tmp_parent_rate, tmp_diff;
|
||||||
long best_diff = -1, best_rate = -EINVAL;
|
long best_diff = -1, best_rate = -EINVAL;
|
||||||
u32 divid, best_div;
|
u32 divid;
|
||||||
|
|
||||||
if (!rate)
|
if (!rate)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -352,7 +352,6 @@ static long sam9x60_div_pll_compute_div(struct sam9x60_pll_core *core,
|
||||||
*parent_rate = tmp_parent_rate;
|
*parent_rate = tmp_parent_rate;
|
||||||
best_rate = tmp_rate;
|
best_rate = tmp_rate;
|
||||||
best_diff = tmp_diff;
|
best_diff = tmp_diff;
|
||||||
best_div = divid;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!best_diff)
|
if (!best_diff)
|
||||||
|
|
Loading…
Add table
Reference in a new issue