Commit e2f2402f authored by Colin Ian King's avatar Colin Ian King Committed by Stephen Boyd

clk: Si5341/Si5340: remove redundant assignment to n_den

The variable n_den is initialized however that value is never read
as n_den is re-assigned a little later in the two paths of a
following if-statement.  Remove the redundant assignment.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Link: https://lkml.kernel.org/r/20190701165020.19840-1-colin.king@canonical.comAcked-by: default avatarMike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent a95fb581
......@@ -547,7 +547,6 @@ static int si5341_synth_clk_set_rate(struct clk_hw *hw, unsigned long rate,
bool is_integer;
n_num = synth->data->freq_vco;
n_den = rate;
/* see if there's an integer solution */
r = do_div(n_num, rate);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment