diff --git a/net/nfc/nci/uart.c b/net/nfc/nci/uart.c index 2c48810af5bbfeec09b4cabe048c7201296c128d..21d8875673a42229f233ca20af640c53e325a4bb 100644 --- a/net/nfc/nci/uart.c +++ b/net/nfc/nci/uart.c @@ -417,7 +417,7 @@ int nci_uart_register(struct nci_uart *nu) nu->ops.recv = nci_uart_default_recv; /* Add this driver in the driver list */ - if (!nci_uart_drivers[nu->driver]) { + if (nci_uart_drivers[nu->driver]) { pr_err("driver %d is already registered\n", nu->driver); return -EBUSY; }