public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] time: clocksource: remove unnecessary (void*) conversions
@ 2023-06-13 19:39 Li zeming
  2023-06-12  7:43 ` Thomas Gleixner
  0 siblings, 1 reply; 2+ messages in thread
From: Li zeming @ 2023-06-13 19:39 UTC (permalink / raw)
  To: jstultz, tglx, sboyd; +Cc: linux-kernel, Li zeming

Pointer variables of void * type do not require type cast.

Signed-off-by: Li zeming <zeming@nfschina.com>
---
 kernel/time/clocksource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index 91836b727cef..82087cec5b07 100644
--- a/kernel/time/clocksource.c
+++ b/kernel/time/clocksource.c
@@ -327,7 +327,7 @@ static void clocksource_verify_choose_cpus(void)
 
 static void clocksource_verify_one_cpu(void *csin)
 {
-	struct clocksource *cs = (struct clocksource *)csin;
+	struct clocksource *cs = csin;
 
 	csnow_mid = cs->read(cs);
 }
-- 
2.18.2


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

end of thread, other threads:[~2023-06-12  7:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-13 19:39 [PATCH] time: clocksource: remove unnecessary (void*) conversions Li zeming
2023-06-12  7:43 ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox