linux/net/nfc/nci
Christophe Ricard 2a84193f14 NFC: nci: Fix error check of nci_hci_create_pipe() result
net/nfc/nci/hci.c: In function nci_hci_connect_gate :
net/nfc/nci/hci.c:679: warning: comparison is always false due to limited range of data type

In case of error, nci_hci_create_pipe() returns NCI_HCI_INVALID_PIPE,
and not a negative error code.

Correct the check to fix this.

Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2015-12-29 19:06:18 +01:00
..
core.c NFC: nci: non-static functions can not be inline 2015-10-28 06:44:45 +01:00
data.c NFC: nci: Add function to get max packet size for conn 2015-10-25 19:11:42 +01:00
hci.c NFC: nci: Fix error check of nci_hci_create_pipe() result 2015-12-29 19:06:18 +01:00
Kconfig NFC: NCI: move generic spi driver to a module 2015-10-27 04:21:38 +01:00
lib.c nfc: Fix FSF address in file headers 2013-12-11 10:56:21 -05:00
Makefile NFC: NCI: move generic spi driver to a module 2015-10-27 04:21:38 +01:00
ntf.c NFC: nci: Allow the driver to set handler for core nci ops 2015-10-25 19:12:57 +01:00
rsp.c NFC: nci: Allow the driver to set handler for core nci ops 2015-10-25 19:12:57 +01:00
spi.c NFC: NCI: allow spi driver to choose transfer clock 2015-10-27 04:23:34 +01:00
uart.c NFC: nci: fix mistake in uart generic driver 2015-06-15 18:10:37 +02:00