diff options
author | Yu Zhe <yuzhe@nfschina.com> | 2023-03-16 10:58:26 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-27 18:07:12 +0300 |
commit | 5833b99cf8fda9475f3db16490e66aee9467df61 (patch) | |
tree | 3b2b0e104cc3ae94ce7fec6e70572ba5c6fd5c33 /drivers/clk | |
parent | a424e713e0cc33d4b969cfda25b9f46df4d7b5bc (diff) | |
download | linux-5833b99cf8fda9475f3db16490e66aee9467df61.tar.xz |
clk: remove unnecessary (void*) conversions
[ Upstream commit 5b1a1c1ab1f981b15bce778db863344f59bd1501 ]
Pointer variables of void * type do not require type cast.
Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
Link: https://lore.kernel.org/r/20230316075826.22754-1-yuzhe@nfschina.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Stable-dep-of: 9d1e795f754d ("clk: Get runtime PM before walking tree for clk_summary")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/clk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 75d8f7f0de9b..bf4ac2f52d33 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -3245,7 +3245,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"); @@ -3304,7 +3304,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(); |