clocksource/drivers/timer-ti-dm: Remove unnecessary NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 19 May 2022 13:58:23 +0000 (16:58 +0300)
committerDaniel 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

index 3e52c52..33609be 100644 (file)
@@ -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;