From 8147e00e4fbfcc43b665dc6bf279b204c501ba04 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 24 Nov 2020 11:28:41 +0100 Subject: [PATCH] ns16550: drop stray "#ifdef CONFIG_HAS_PCI" There's no point wrapping the function invocation when - the function body is already suitably wrapped, - the function itself is unconditionally available. Reported-by: Julien Grall Signed-off-by: Jan Beulich Reviewed-by: Stefano Stabellini Reviewed-by: Rahul Singh --- xen/drivers/char/ns16550.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/xen/drivers/char/ns16550.c b/xen/drivers/char/ns16550.c index 82087c4a7a..9235d854fe 100644 --- a/xen/drivers/char/ns16550.c +++ b/xen/drivers/char/ns16550.c @@ -662,9 +662,7 @@ static int __init check_existence(struct ns16550 *uart) return 1; /* Everything is MMIO */ #endif -#ifdef CONFIG_HAS_PCI pci_serial_early_init(uart); -#endif /* * Do a simple existence test first; if we fail this, -- 2.30.2