Skip to content

Commit 311fb70

Browse files
Dejin Zhengdlezcano
authored andcommitted
clocksource/drivers/arc_timer: Remove duplicate error message
The function arc_get_timer_clk() prints an error message if it fails, remove the second error message if the function fails. Signed-off-by: Dejin Zheng <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 83cba95 commit 311fb70

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/clocksource/arc_timer.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,10 +334,8 @@ static int __init arc_clockevent_setup(struct device_node *node)
334334
}
335335

336336
ret = arc_get_timer_clk(node);
337-
if (ret) {
338-
pr_err("clockevent: missing clk\n");
337+
if (ret)
339338
return ret;
340-
}
341339

342340
/* Needs apriori irq_set_percpu_devid() done in intc map function */
343341
ret = request_percpu_irq(arc_timer_irq, timer_irq_handler,

0 commit comments

Comments
 (0)