* [PATCH] clk: remove unnecessary (void*) conversions
@ 2023-03-16 7:58 Yu Zhe
2023-03-17 0:28 ` Stephen Boyd
0 siblings, 1 reply; 4+ messages in thread
From: Yu Zhe @ 2023-03-16 7:58 UTC (permalink / raw)
To: mturquette, sboyd
Cc: linux-clk, linux-kernel, kernel-janitors, liqiong, Yu Zhe
Pointer variables of void * type do not require type cast.
Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
---
drivers/clk/clk.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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();
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH] clk: Remove unnecessary (void*) conversions
@ 2023-04-20 8:01 Suhui
2023-04-28 21:58 ` Stephen Boyd
0 siblings, 1 reply; 4+ messages in thread
From: Suhui @ 2023-04-20 8:01 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd; +Cc: linux-clk, linux-kernel, Suhui
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(-)
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();
--
2.30.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-04-28 21:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-16 7:58 [PATCH] clk: remove unnecessary (void*) conversions Yu Zhe
2023-03-17 0:28 ` Stephen Boyd
-- strict thread matches above, loose matches on Subject: below --
2023-04-20 8:01 [PATCH] clk: Remove " Suhui
2023-04-28 21:58 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox