linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] drivers/clocksource/arm_arch_timer: remove duplicate error message
@ 2020-04-29 15:35 Dejin Zheng
  2020-05-18 16:21 ` Daniel Lezcano
  2020-06-01 13:11 ` [tip: timers/core] drivers/clocksource/arm_arch_timer: Remove " tip-bot2 for Dejin Zheng
  0 siblings, 2 replies; 3+ messages in thread
From: Dejin Zheng @ 2020-04-29 15:35 UTC (permalink / raw)
  To: mark.rutland, maz, daniel.lezcano, tglx, linux-arm-kernel
  Cc: linux-kernel, Dejin Zheng

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

Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
---
 drivers/clocksource/arm_arch_timer.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c
index 2204a444e801..ecf7b7db2d05 100644
--- a/drivers/clocksource/arm_arch_timer.c
+++ b/drivers/clocksource/arm_arch_timer.c
@@ -1588,10 +1588,8 @@ static int __init arch_timer_acpi_init(struct acpi_table_header *table)
 	arch_timers_present |= ARCH_TIMER_TYPE_CP15;
 
 	ret = acpi_gtdt_init(table, &platform_timer_count);
-	if (ret) {
-		pr_err("Failed to init GTDT table.\n");
+	if (ret)
 		return ret;
-	}
 
 	arch_timer_ppi[ARCH_TIMER_PHYS_NONSECURE_PPI] =
 		acpi_gtdt_map_ppi(ARCH_TIMER_PHYS_NONSECURE_PPI);
-- 
2.25.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] drivers/clocksource/arm_arch_timer: remove duplicate error message
  2020-04-29 15:35 [PATCH v1] drivers/clocksource/arm_arch_timer: remove duplicate error message Dejin Zheng
@ 2020-05-18 16:21 ` Daniel Lezcano
  2020-06-01 13:11 ` [tip: timers/core] drivers/clocksource/arm_arch_timer: Remove " tip-bot2 for Dejin Zheng
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Lezcano @ 2020-05-18 16:21 UTC (permalink / raw)
  To: Dejin Zheng, mark.rutland, maz, tglx, linux-arm-kernel; +Cc: linux-kernel

On 29/04/2020 17:35, Dejin Zheng wrote:
> it will print an error message by itself when acpi_gtdt_init()
> goes wrong. so remove the duplicate error message.
> 
> Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>

Applied, thanks


-- 
<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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip: timers/core] drivers/clocksource/arm_arch_timer: Remove duplicate error message
  2020-04-29 15:35 [PATCH v1] drivers/clocksource/arm_arch_timer: remove duplicate error message Dejin Zheng
  2020-05-18 16:21 ` Daniel Lezcano
@ 2020-06-01 13:11 ` tip-bot2 for Dejin Zheng
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Dejin Zheng @ 2020-06-01 13:11 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Dejin Zheng, Daniel Lezcano, x86, LKML

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

Commit-ID:     d1b5e55208fd8e1c73876ab6ad1ce93485e3f5a2
Gitweb:        https://git.kernel.org/tip/d1b5e55208fd8e1c73876ab6ad1ce93485e3f5a2
Author:        Dejin Zheng <zhengdejin5@gmail.com>
AuthorDate:    Wed, 29 Apr 2020 23:35:59 +08:00
Committer:     Daniel Lezcano <daniel.lezcano@linaro.org>
CommitterDate: Fri, 22 May 2020 23:58:56 +02:00

drivers/clocksource/arm_arch_timer: Remove duplicate error message

The function acpi_gtdt_init() prints a message in case of
error. Remove the error message after testing if the function fails,
otherwise it is a duplicate message.

Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200429153559.21189-1-zhengdejin5@gmail.com
---
 drivers/clocksource/arm_arch_timer.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c
index d53f4c7..befe54a 100644
--- a/drivers/clocksource/arm_arch_timer.c
+++ b/drivers/clocksource/arm_arch_timer.c
@@ -1577,10 +1577,8 @@ static int __init arch_timer_acpi_init(struct acpi_table_header *table)
 	arch_timers_present |= ARCH_TIMER_TYPE_CP15;
 
 	ret = acpi_gtdt_init(table, &platform_timer_count);
-	if (ret) {
-		pr_err("Failed to init GTDT table.\n");
+	if (ret)
 		return ret;
-	}
 
 	arch_timer_ppi[ARCH_TIMER_PHYS_NONSECURE_PPI] =
 		acpi_gtdt_map_ppi(ARCH_TIMER_PHYS_NONSECURE_PPI);

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-01 13:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29 15:35 [PATCH v1] drivers/clocksource/arm_arch_timer: remove duplicate error message Dejin Zheng
2020-05-18 16:21 ` Daniel Lezcano
2020-06-01 13:11 ` [tip: timers/core] drivers/clocksource/arm_arch_timer: Remove " tip-bot2 for Dejin Zheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).