projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a74dfa4
)
clocksource/drivers/timer-ti-dm: Remove unnecessary NULL check
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 19 May 2022 13:58:23 +0000
(16:58 +0300)
committer
Daniel Lezcano
<daniel.lezcano@linaro.org>
Tue, 24 May 2022 07:16:29 +0000
(09:16 +0200)
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>
drivers/clocksource/timer-ti-dm.c
patch
|
blob
|
history
diff --git
a/drivers/clocksource/timer-ti-dm.c
b/drivers/clocksource/timer-ti-dm.c
index 3e52c5226c4d9b3e7d2c20d599f97578953f9992..33609be0b304b10f9b76887a70885cfabf4767f2 100644
(file)
--- 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;