summaryrefslogtreecommitdiff
path: root/net/nfc/nci/uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/nfc/nci/uart.c')
-rw-r--r--net/nfc/nci/uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/nci/uart.c b/net/nfc/nci/uart.c
index 2c48810af5bb..21d8875673a4 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;
}