]> xenbits.xensource.com Git - people/pauldu/xen.git/commitdiff
ns16550: drop stray "#ifdef CONFIG_HAS_PCI"
authorJan Beulich <jbeulich@suse.com>
Tue, 24 Nov 2020 10:28:41 +0000 (11:28 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 24 Nov 2020 10:28:41 +0000 (11:28 +0100)
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 <julien@xen.org>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Rahul Singh <rahul.singh@arm.com>
xen/drivers/char/ns16550.c

index 82087c4a7a33ee9b8c657489f843beaf16340416..9235d854fe2f432600975e972151dd6e44cfe479 100644 (file)
@@ -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,