linux/drivers/nfc/st21nfca
Christophe Ricard 459e794b9b NFC: st21nfca: ERR_PTR vs NULL fix
"skb" can be NULL here but it can't be an ERR_PTR:
- IS_ERR(NULL) return false and skb migth be NULL.
- skb cannot be a ERR_PTR as nfc_hci_send_cmd_async it never using such cast.

!skb is more appropriate at those places.

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>
2014-09-24 02:02:24 +02:00
..
i2c.c NFC: st21nfca: Remove useless new line in nfc_err call 2014-09-07 23:56:49 +02:00
Kconfig NFC: ST21NFCA: Add driver for STMicroelectronics ST21NFCA NFC Chip 2014-04-22 00:37:25 +02:00
Makefile NFC: st21nfca: Adding P2P support to st21nfca in Initiator & Target mode 2014-07-23 01:14:41 +02:00
st21nfca_dep.c NFC: st21nfca: ERR_PTR vs NULL fix 2014-09-24 02:02:24 +02:00
st21nfca_dep.h NFC: st21nfca: Adding P2P support to st21nfca in Initiator & Target mode 2014-07-23 01:14:41 +02:00
st21nfca.c NFC: st21nfca: Fix recursive fault when doing p2p in target mode. 2014-09-24 02:02:23 +02:00
st21nfca.h NFC: st21nfca: Clean up st21nfca.h macros 2014-09-08 00:30:15 +02:00