2022-07-20 02:19:25

by XU pengfei

[permalink] [raw]
Subject: [PATCH 1/1] clocksource/drivers/sun4i: remove unnecessary (void*) conversions

remove unnecessary void* type casting.

Signed-off-by: XU pengfei <[email protected]>
---
drivers/clocksource/timer-sun4i.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/timer-sun4i.c b/drivers/clocksource/timer-sun4i.c
index bb6ea6c19829..94dc6e42e983 100644
--- a/drivers/clocksource/timer-sun4i.c
+++ b/drivers/clocksource/timer-sun4i.c
@@ -128,7 +128,7 @@ static void sun4i_timer_clear_interrupt(void __iomem *base)

static irqreturn_t sun4i_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;
struct timer_of *to = to_timer_of(evt);

sun4i_timer_clear_interrupt(timer_of_base(to));
--
2.18.2


2022-07-20 15:00:55

by Daniel Lezcano

[permalink] [raw]
Subject: Re: [PATCH 1/1] clocksource/drivers/sun4i: remove unnecessary (void*) conversions

On 20/07/2022 04:07, XU pengfei wrote:
> remove unnecessary void* type casting.
>
> Signed-off-by: XU pengfei <[email protected]>
> ---

Applied, thanks


--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

2022-07-28 10:59:06

by tip-bot2 for Jacob Pan

[permalink] [raw]
Subject: [tip: timers/core] clocksource/drivers/sun4i: Remove unnecessary (void*) conversions

The following commit has been merged into the timers/core branch of tip:

Commit-ID: 7a93d490900edcdbd3833d8bb9a01b23d8bb461e
Gitweb: https://git.kernel.org/tip/7a93d490900edcdbd3833d8bb9a01b23d8bb461e
Author: XU pengfei <[email protected]>
AuthorDate: Wed, 20 Jul 2022 10:07:35 +08:00
Committer: Daniel Lezcano <[email protected]>
CommitterDate: Wed, 27 Jul 2022 17:01:52 +02:00

clocksource/drivers/sun4i: Remove unnecessary (void*) conversions

Remove unnecessary void* type casting.

Signed-off-by: XU pengfei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Daniel Lezcano <[email protected]>
---
drivers/clocksource/timer-sun4i.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/timer-sun4i.c b/drivers/clocksource/timer-sun4i.c
index bb6ea6c..94dc6e4 100644
--- a/drivers/clocksource/timer-sun4i.c
+++ b/drivers/clocksource/timer-sun4i.c
@@ -128,7 +128,7 @@ static void sun4i_timer_clear_interrupt(void __iomem *base)

static irqreturn_t sun4i_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;
struct timer_of *to = to_timer_of(evt);

sun4i_timer_clear_interrupt(timer_of_base(to));