diff options
| author | Dan Carpenter <[email protected]> | 2022-05-19 13:58:23 +0000 |
|---|---|---|
| committer | Daniel Lezcano <[email protected]> | 2022-05-24 07:16:29 +0000 |
| commit | 8c0d9461ab760439b09ae321803ee85df1136e08 (patch) | |
| tree | 9226b8b8c883189ec3cb872c6d582f6c87e29992 /drivers/clocksource/timer-ti-dm.c | |
| parent | clocksource/drivers/timer-sun5i: Convert to SPDX identifier (diff) | |
| download | kernel-8c0d9461ab760439b09ae321803ee85df1136e08.tar.gz kernel-8c0d9461ab760439b09ae321803ee85df1136e08.zip | |
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]>
Diffstat (limited to 'drivers/clocksource/timer-ti-dm.c')
| -rw-r--r-- | drivers/clocksource/timer-ti-dm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c index 3e52c5226c4d..33609be0b304 100644 --- a/drivers/clocksource/timer-ti-dm.c +++ b/drivers/clocksource/timer-ti-dm.c @@ -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; |
