clocksource/drivers/timer-ti-dm: Remove unnecessary NULL check
The "pdata" pointer cannot be NULL because it's checked at the start of the function. Delete the check. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/YoZM65RFDQAfqV6J@kili Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
This commit is contained in:
parent
a74dfa434f
commit
8c0d9461ab
@ -828,8 +828,7 @@ static int omap_dm_timer_probe(struct platform_device *pdev)
|
|||||||
cpu_pm_register_notifier(&timer->nb);
|
cpu_pm_register_notifier(&timer->nb);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pdata)
|
timer->errata = pdata->timer_errata;
|
||||||
timer->errata = pdata->timer_errata;
|
|
||||||
|
|
||||||
timer->pdev = pdev;
|
timer->pdev = pdev;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user