* [PATCH] clocksource: Remove unnecessary (void*) conversions
@ 2022-08-09 2:18 Li zeming
0 siblings, 0 replies; 3+ messages in thread
From: Li zeming @ 2022-08-09 2:18 UTC (permalink / raw)
To: daniel.lezcano, tglx, narmstrong, khilman, jbrunet, martin.blumenstingl
Cc: linux-kernel, linux-arm-kernel, linux-amlogic, Li zeming
Remove unnecessary void* type castings.
Signed-off-by: Li zeming <zeming@nfschina.com>
---
drivers/clocksource/timer-meson6.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/timer-meson6.c b/drivers/clocksource/timer-meson6.c
index 99f5510a2b56..83dcd167e204 100644
--- a/drivers/clocksource/timer-meson6.c
+++ b/drivers/clocksource/timer-meson6.c
@@ -143,7 +143,7 @@ static struct clock_event_device meson6_clockevent = {
static irqreturn_t meson6_timer_interrupt(int irq, void *dev_id)
{
- struct clock_event_device *evt = (struct clock_event_device *)dev_id;
+ struct clock_event_device *evt = dev_id;
evt->event_handler(evt);
--
2.18.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] clocksource: remove unnecessary (void*) conversions.
@ 2022-08-09 2:28 Li zeming
0 siblings, 0 replies; 3+ messages in thread
From: Li zeming @ 2022-08-09 2:28 UTC (permalink / raw)
To: daniel.lezcano, tglx, orsonzhai, baolin.wang, zhang.lyra
Cc: linux-kernel, Li zeming
Remove unnecessary void* type castings.
Signed-off-by: Li zeming <zeming@nfschina.com>
---
drivers/clocksource/timer-sprd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/timer-sprd.c b/drivers/clocksource/timer-sprd.c
index 430cb99d8d79..9b97fd87fbe9 100644
--- a/drivers/clocksource/timer-sprd.c
+++ b/drivers/clocksource/timer-sprd.c
@@ -109,7 +109,7 @@ static int sprd_timer_shutdown(struct clock_event_device *ce)
static irqreturn_t sprd_timer_interrupt(int irq, void *dev_id)
{
- struct clock_event_device *ce = (struct clock_event_device *)dev_id;
+ struct clock_event_device *ce = dev_id;
struct timer_of *to = to_timer_of(ce);
sprd_timer_clear_interrupt(timer_of_base(to));
--
2.18.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] clocksource: Remove unnecessary (void*) conversions
@ 2022-08-09 2:21 Li zeming
0 siblings, 0 replies; 3+ messages in thread
From: Li zeming @ 2022-08-09 2:21 UTC (permalink / raw)
To: daniel.lezcano, tglx, orsonzhai, baolin.wang, zhang.lyra
Cc: linux-kernel, Li zeming
Remove unnecessary void* type castings.
Signed-off-by: Li zeming <zeming@nfschina.com>
---
drivers/clocksource/timer-sprd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/timer-sprd.c b/drivers/clocksource/timer-sprd.c
index 430cb99d8d79..9b97fd87fbe9 100644
--- a/drivers/clocksource/timer-sprd.c
+++ b/drivers/clocksource/timer-sprd.c
@@ -109,7 +109,7 @@ static int sprd_timer_shutdown(struct clock_event_device *ce)
static irqreturn_t sprd_timer_interrupt(int irq, void *dev_id)
{
- struct clock_event_device *ce = (struct clock_event_device *)dev_id;
+ struct clock_event_device *ce = dev_id;
struct timer_of *to = to_timer_of(ce);
sprd_timer_clear_interrupt(timer_of_base(to));
--
2.18.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-08-09 2:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-09 2:18 [PATCH] clocksource: Remove unnecessary (void*) conversions Li zeming
2022-08-09 2:21 Li zeming
2022-08-09 2:28 [PATCH] clocksource: remove " Li zeming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).