This patch fixes an unused variable warning from the compiler when the driver is being compiled without PCI support in the kernel. Signed-off-by: Pascal van Leeuwen <pvanleeuwen@xxxxxxxxxxxxxx> --- drivers/crypto/inside-secure/safexcel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/inside-secure/safexcel.c b/drivers/crypto/inside-secure/safexcel.c index e12a2a3..0f1a9dc 100644 --- a/drivers/crypto/inside-secure/safexcel.c +++ b/drivers/crypto/inside-secure/safexcel.c @@ -1503,7 +1503,9 @@ void safexcel_pci_remove(struct pci_dev *pdev) static int __init safexcel_init(void) { +#if IS_ENABLED(CONFIG_PCI) int rc; +#endif #if IS_ENABLED(CONFIG_OF) /* Register platform driver */ -- 1.8.3.1