clocksource/drivers/tegra: Drop unneeded typecasting in one place
authorDmitry Osipenko <digetx@gmail.com>
Tue, 18 Jun 2019 14:03:54 +0000 (17:03 +0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 25 Jun 2019 17:49:18 +0000 (19:49 +0200)
There is no need to cast void because kernel allows to do that without
a warning message from a compiler.

Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-tegra.c

index 41257f89a216bd831080366946dba56e0cceeed6..f7a09d88dacb4363e08f8baedbd821bec3dfc86f 100644 (file)
@@ -83,7 +83,7 @@ static int tegra_timer_set_periodic(struct clock_event_device *evt)
 
 static irqreturn_t tegra_timer_isr(int irq, void *dev_id)
 {
-       struct clock_event_device *evt = (struct clock_event_device *)dev_id;
+       struct clock_event_device *evt = dev_id;
        void __iomem *reg_base = timer_of_base(to_timer_of(evt));
 
        writel_relaxed(TIMER_PCR_INTR_CLR, reg_base + TIMER_PCR);