]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drivers/clocksource/arm_arch_timer: Remove duplicate error message
authorDejin Zheng <zhengdejin5@gmail.com>
Wed, 29 Apr 2020 15:35:59 +0000 (23:35 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 22 May 2020 21:58:56 +0000 (23:58 +0200)
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

index d53f4c7ccaae59a925449c95600f019ffd99b847..befe54a9af607130fa772422fefe09456309d8cc 100644 (file)
@@ -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);