Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

NFC: Quiet nci/ntf.c sparse noise about plain integer as NULL pointer

Pointers should be cleared with NULL, not 0.

Quiets a couple sparse warnings of the type:

warning: Using plain integer as NULL pointer

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Lauro Ramos Venancio <lauro.venancio@openbossa.org>
Cc: Aloisio Almeida Jr <aloisio.almeida@openbossa.org>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

H Hartley Sweeten and committed by
John W. Linville
799030b7 502b4240

+1 -1
+1 -1
net/nfc/nci/ntf.c
··· 497 497 /* drop partial rx data packet */ 498 498 if (ndev->rx_data_reassembly) { 499 499 kfree_skb(ndev->rx_data_reassembly); 500 - ndev->rx_data_reassembly = 0; 500 + ndev->rx_data_reassembly = NULL; 501 501 } 502 502 503 503 /* complete the data exchange transaction, if exists */