Skip to contentSkip to conversation

time: clocksource: remove unnecessary (void*) conversions

PATCH In review Li zeming 2 participants 2 messages Jun 12, 2023 Timekeeping, clocksource core, NTP, alarmtimer

lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 time: clocksource: remove unnecessary (void*) conversions

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

---
 kernel/time/clocksource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/time/clocksource.c +1 -1
index 91836b727cef..82087cec5b07 100644
@@ -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);
 }
Signature · 1 line
2.18.2