time: clocksource: remove unnecessary (void*) conversions

Message ID 20230613193919.3439-1-zeming@nfschina.com
State New
Headers
Series time: clocksource: remove unnecessary (void*) conversions |

Commit Message

Li zeming June 13, 2023, 7:39 p.m. UTC
  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(-)
  

Comments

Thomas Gleixner June 12, 2023, 7:43 a.m. UTC | #1
On Wed, Jun 14 2023 at 03:39, Li zeming wrote:
> Pointer variables of void * type do not require type cast.

Neither the subject nor this sentence make sense. I fixed that up for you on your
previous patch:

  https://lore.kernel.org/all/168640113003.404.3362295823712498263.tip-bot2@tip-bot2/

Thanks.

        tglx
  

Patch

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);
 }