diff mbox series

clk: Remove unnecessary (void*) conversions

Message ID 20230420080154.2356480-1-suhui@nfschina.com (mailing list archive)
State Superseded, archived
Headers show
Series clk: Remove unnecessary (void*) conversions | expand

Commit Message

Su Hui April 20, 2023, 8:01 a.m. UTC
No need cast (void*) to (struct hlist_head **).

Signed-off-by: Suhui <suhui@nfschina.com>
---
 drivers/clk/clk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Stephen Boyd April 28, 2023, 9:58 p.m. UTC | #1
Quoting Suhui (2023-04-20 01:01:54)
> No need cast (void*) to (struct hlist_head **).
> 
> Signed-off-by: Suhui <suhui@nfschina.com>
> ---

This is https://lore.kernel.org/r/20230316075826.22754-1-yuzhe@nfschina.com
diff mbox series

Patch

diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index ae07685c7588..9410a4e1b04b 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -3194,7 +3194,7 @@  static void clk_summary_show_subtree(struct seq_file *s, struct clk_core *c,
 static int clk_summary_show(struct seq_file *s, void *data)
 {
 	struct clk_core *c;
-	struct hlist_head **lists = (struct hlist_head **)s->private;
+	struct hlist_head **lists = s->private;
 
 	seq_puts(s, "                                 enable  prepare  protect                                duty  hardware\n");
 	seq_puts(s, "   clock                          count    count    count        rate   accuracy phase  cycle    enable\n");
@@ -3253,7 +3253,7 @@  static int clk_dump_show(struct seq_file *s, void *data)
 {
 	struct clk_core *c;
 	bool first_node = true;
-	struct hlist_head **lists = (struct hlist_head **)s->private;
+	struct hlist_head **lists = s->private;
 
 	seq_putc(s, '{');
 	clk_prepare_lock();