linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][next] clk: Si5341/Si5340: remove redundant assignment to n_den
@ 2019-07-01 16:50 Colin King
  2019-07-22 21:24 ` Stephen Boyd
  2019-08-07 21:23 ` Stephen Boyd
  0 siblings, 2 replies; 8+ messages in thread
From: Colin King @ 2019-07-01 16:50 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, linux-clk; +Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

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: Colin Ian King <colin.king@canonical.com>
---
 drivers/clk/clk-si5341.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/clk/clk-si5341.c b/drivers/clk/clk-si5341.c
index 72424eb7e5f8..6e780c2a9e6b 100644
--- a/drivers/clk/clk-si5341.c
+++ b/drivers/clk/clk-si5341.c
@@ -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);
-- 
2.20.1


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

end of thread, other threads:[~2019-08-07 21:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-01 16:50 [PATCH][next] clk: Si5341/Si5340: remove redundant assignment to n_den Colin King
2019-07-22 21:24 ` Stephen Boyd
2019-07-22 21:43   ` Christophe JAILLET
2019-07-22 21:53     ` Stephen Boyd
2019-07-22 22:00       ` Christophe JAILLET
2019-07-22 22:24         ` Stephen Boyd
2019-07-23 12:29   ` Mike Looijmans
2019-08-07 21:23 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).