From: Li zeming <zeming@nfschina.com>
To: jstultz@google.com, tglx@linutronix.de, sboyd@kernel.org
Cc: linux-kernel@vger.kernel.org, Li zeming <zeming@nfschina.com>
Subject: [PATCH] time: clocksource: remove unnecessary (void*) conversions
Date: Wed, 14 Jun 2023 03:39:19 +0800 [thread overview]
Message-ID: <20230613193919.3439-1-zeming@nfschina.com> (raw)
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
next reply other threads:[~2023-06-12 3:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-13 19:39 Li zeming [this message]
2023-06-12 7:43 ` Thomas Gleixner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230613193919.3439-1-zeming@nfschina.com \
--to=zeming@nfschina.com \
--cc=jstultz@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sboyd@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®