Skip to content

Commit d1b5e55

Browse files
Dejin Zhengdlezcano
authored andcommitted
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 <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 311fb70 commit d1b5e55

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/clocksource/arm_arch_timer.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,10 +1577,8 @@ static int __init arch_timer_acpi_init(struct acpi_table_header *table)
15771577
arch_timers_present |= ARCH_TIMER_TYPE_CP15;
15781578

15791579
ret = acpi_gtdt_init(table, &platform_timer_count);
1580-
if (ret) {
1581-
pr_err("Failed to init GTDT table.\n");
1580+
if (ret)
15821581
return ret;
1583-
}
15841582

15851583
arch_timer_ppi[ARCH_TIMER_PHYS_NONSECURE_PPI] =
15861584
acpi_gtdt_map_ppi(ARCH_TIMER_PHYS_NONSECURE_PPI);

0 commit comments

Comments
 (0)