clocksource: fix NULL pointer deferencing issue

PD#151226: driver defect clean up
#229

Change-Id: Ie37dc17d5036813958180415d2b9b4405a44c793
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
This commit is contained in:
Jiamin Ma
2017-09-20 15:29:34 +08:00
committed by Jianxin Pan
parent 07d62d0088
commit cc619fdedb

View File

@@ -214,8 +214,7 @@ int clockevent_init_and_register(struct device_node *np)
timer = np;
if (!timer) {
pr_info(" * %s missing timer phandle\n",
timer->full_name);
pr_info(" * missing timer phandle\n");
return -1;
}
if (of_property_read_string(timer, "timer_name",