Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6269cc83 authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville
Browse files

nfc: NULL vs zero in nci_activate_target()



This is a pointer so it should be NULL instead of zero.  Sparse
complains about this stuff:
net/nfc/nci/core.c:447:37: warning: Using plain integer as NULL pointer

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c4f3b972
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -444,7 +444,7 @@ static int nci_activate_target(struct nfc_dev *nfc_dev, __u32 target_idx,
{
	struct nci_dev *ndev = nfc_get_drvdata(nfc_dev);
	struct nci_rf_discover_select_param param;
	struct nfc_target *target = 0;
	struct nfc_target *target = NULL;
	int i;
	int rc = 0;