From: Dejin Zheng Date: Wed, 29 Apr 2020 15:12:23 +0000 (+0800) Subject: clocksource/drivers/arc_timer: Remove duplicate error message X-Git-Tag: v5.8-rc1~178^2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=311fb70aa55174ddebb5c6022b23e58b85e9f116;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20200429151223.3120-1-zhengdejin5@gmail.com --- diff --git a/drivers/clocksource/arc_timer.c b/drivers/clocksource/arc_timer.c index b29b5a75333eb..de93dd1a8c7b9 100644 --- a/drivers/clocksource/arc_timer.c +++ b/drivers/clocksource/arc_timer.c @@ -334,10 +334,8 @@ static int __init arc_clockevent_setup(struct device_node *node) } ret = arc_get_timer_clk(node); - if (ret) { - pr_err("clockevent: missing clk\n"); + if (ret) return ret; - } /* Needs apriori irq_set_percpu_devid() done in intc map function */ ret = request_percpu_irq(arc_timer_irq, timer_irq_handler,