diff options
| author | Dejin Zheng <[email protected]> | 2020-04-29 15:12:23 +0000 |
|---|---|---|
| committer | Daniel Lezcano <[email protected]> | 2020-05-22 21:58:56 +0000 |
| commit | 311fb70aa55174ddebb5c6022b23e58b85e9f116 (patch) | |
| tree | 8982498e63a07b1d66abb7c3170850419cbc0a04 /drivers/clocksource/arc_timer.c | |
| parent | clocksource/drivers/rda: drop redundant Kconfig dependency (diff) | |
| download | kernel-311fb70aa55174ddebb5c6022b23e58b85e9f116.tar.gz kernel-311fb70aa55174ddebb5c6022b23e58b85e9f116.zip | |
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]
Diffstat (limited to 'drivers/clocksource/arc_timer.c')
| -rw-r--r-- | drivers/clocksource/arc_timer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clocksource/arc_timer.c b/drivers/clocksource/arc_timer.c index b29b5a75333e..de93dd1a8c7b 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, |
