summaryrefslogtreecommitdiffstats
path: root/net/nfc/nci/hci.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-01-04 21:48:15 -0500
committerDavid S. Miller <davem@davemloft.net>2016-01-04 21:48:15 -0500
commit15ab90f400781a801017ea2bd8597e6eb3f39f79 (patch)
tree561d350474e9eeecf4e0364291366b193460c974 /net/nfc/nci/hci.c
parent197c949e7798fbf28cfadc69d9ca0c2abbf93191 (diff)
parentc6dc65d885b98898bf287aaf44e020077b41769f (diff)
downloadlinux-15ab90f400781a801017ea2bd8597e6eb3f39f79.tar.gz
linux-15ab90f400781a801017ea2bd8597e6eb3f39f79.tar.bz2
linux-15ab90f400781a801017ea2bd8597e6eb3f39f79.zip
Merge tag 'nfc-next-4.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/nfc-next
Samuel Ortiz says: ==================== NFC 4.5 pull request This is the first NFC pull request for 4.5 and it brings: - A new driver for the STMicroelectronics ST95HF NFC chipset. The ST95HF is an NFC digital transceiver with an embedded analog front-end and as such relies on the Linux NFC digital implementation. This is the 3rd user of the NFC digital stack. - ACPI support for the ST st-nci and st21nfca drivers. - A small improvement for the nfcsim driver, as we can now tune the Rx delay through sysfs. - A bunch of minor cleanups and small fixes from Christophe Ricard, for a few drivers and the NFC core code. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/nfc/nci/hci.c')
-rw-r--r--net/nfc/nci/hci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/nci/hci.c b/net/nfc/nci/hci.c
index 2aedac15cb59..a0ab26d535dc 100644
--- a/net/nfc/nci/hci.c
+++ b/net/nfc/nci/hci.c
@@ -676,7 +676,7 @@ int nci_hci_connect_gate(struct nci_dev *ndev,
break;
default:
pipe = nci_hci_create_pipe(ndev, dest_host, dest_gate, &r);
- if (pipe < 0)
+ if (pipe == NCI_HCI_INVALID_PIPE)
return r;
pipe_created = true;
break;