Skip to contentSkip to conversation

clocksource: arc_timer: remove duplicate error message

PATCH Applied Dejin Zheng 3 participants 3 messages Apr 29, 2020 – Jun 1, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clocksource: arc_timer: remove duplicate error message

it will print an error message by itself when arc_get_timer_clk() goes wrong. so remove the duplicate error message.

---
 drivers/clocksource/arc_timer.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/clocksource/arc_timer.c +1 -3
index b29b5a75333e..de93dd1a8c7b 100644
@@ -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,
Signature · 1 line
2.25.0
#1 lore raw
Quoted 4 lines · Dejin Zheng

it will print an error message by itself when arc_get_timer_clk() goes wrong. so remove the duplicate error message.

Applied, thanks

Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
merge bot Applied
#2 lore raw

[tip: timers/core] clocksource/drivers/arc_timer: Remove duplicate error message

In reply to Dejin Zheng
The following commit has been merged into the timers/core branch of tip:

The following commit has been merged into the timers/core branch of tip:

Commit-ID:     311fb70aa55174ddebb5c6022b23e58b85e9f116
Gitweb:        https://git.kernel.org/tip/311fb70aa55174ddebb5c6022b23e58b85e9f116
Author:        Dejin Zheng <[email protected]>
AuthorDate:    Wed, 29 Apr 2020 23:12:23 +08:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Fri, 22 May 2020 23:58:56 +02:00

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.

---
 drivers/clocksource/arc_timer.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/clocksource/arc_timer.c +1 -3
index b29b5a7..de93dd1 100644
@@ -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,