From: Christophe Ricard Date: Sat, 13 Sep 2014 08:28:52 +0000 (+0200) Subject: NFC: st21nfca: ERR_PTR vs NULL fix X-Git-Tag: omap-for-v3.19/prcm-cleanup~141^2~39^2~72^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=459e794b9b1e0c6be93745344c40364296e7aacd;p=pandora-kernel.git 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 Signed-off-by: Christophe Ricard Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed