lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230613193919.3439-1-zeming@nfschina.com>
Date:   Wed, 14 Jun 2023 03:39:19 +0800
From:   Li zeming <zeming@...china.com>
To:     jstultz@...gle.com, tglx@...utronix.de, sboyd@...nel.org
Cc:     linux-kernel@...r.kernel.org, Li zeming <zeming@...china.com>
Subject: [PATCH] time: clocksource: remove unnecessary (void*) conversions

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

Signed-off-by: Li zeming <zeming@...china.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ