Skip to content

Commit

Permalink
clocksource/drivers/timer-ti-dm: Remove unnecessary NULL check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Daniel Lezcano committed May 24, 2022
1 parent a74dfa4 commit 8c0d946
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/clocksource/timer-ti-dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,8 +828,7 @@ static int omap_dm_timer_probe(struct platform_device *pdev)
cpu_pm_register_notifier(&timer->nb);
}

if (pdata)
timer->errata = pdata->timer_errata;
timer->errata = pdata->timer_errata;

timer->pdev = pdev;

Expand Down

0 comments on commit 8c0d946

Please sign in to comment.