aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/arm_arch_timer.c
diff options
context:
space:
mode:
authorDejin Zheng <zhengdejin5@gmail.com>2020-04-29 23:35:59 +0800
committerDaniel Lezcano <daniel.lezcano@linaro.org>2020-05-22 23:58:56 +0200
commitd1b5e55208fd8e1c73876ab6ad1ce93485e3f5a2 (patch)
tree14368490b8fbe7881df26bea39e72c8985363cb9 /drivers/clocksource/arm_arch_timer.c
parentclocksource/drivers/arc_timer: Remove duplicate error message (diff)
downloadlinux-dev-d1b5e55208fd8e1c73876ab6ad1ce93485e3f5a2.tar.xz
linux-dev-d1b5e55208fd8e1c73876ab6ad1ce93485e3f5a2.zip
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
Diffstat (limited to 'drivers/clocksource/arm_arch_timer.c')
-rw-r--r--drivers/clocksource/arm_arch_timer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c
index d53f4c7ccaae..befe54a9af60 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);