Skip to content

Commit

Permalink
clocksource/drivers/arc_timer: Remove duplicate error message
Browse files Browse the repository at this point in the history
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 <zhengdejin5@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200429151223.3120-1-zhengdejin5@gmail.com
  • Loading branch information
Dejin Zheng authored and Daniel Lezcano committed May 22, 2020
1 parent 83cba95 commit 311fb70
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/clocksource/arc_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 311fb70

Please sign in to comment.