Skip to content

Commit 8c0d946

Browse files
Dan Carpenterdlezcano
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/YoZM65RFDQAfqV6J@kili Signed-off-by: Daniel Lezcano <[email protected]>
1 parent a74dfa4 commit 8c0d946

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/clocksource/timer-ti-dm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,8 +828,7 @@ static int omap_dm_timer_probe(struct platform_device *pdev)
828828
cpu_pm_register_notifier(&timer->nb);
829829
}
830830

831-
if (pdata)
832-
timer->errata = pdata->timer_errata;
831+
timer->errata = pdata->timer_errata;
833832

834833
timer->pdev = pdev;
835834

0 commit comments

Comments
 (0)