Commit 8c0d9461 authored by Dan Carpenter's avatar Dan Carpenter Committed by Daniel Lezcano
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YoZM65RFDQAfqV6J@kili


Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent a74dfa43
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -828,7 +828,6 @@ static int omap_dm_timer_probe(struct platform_device *pdev)
		cpu_pm_register_notifier(&timer->nb);
	}

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

	timer->pdev = pdev;