summaryrefslogtreecommitdiffstats
path: root/net/nfc/nci
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-01-26 07:13:31 +0100
committerJohn W. Linville <linville@tuxdriver.com>2012-01-27 20:57:04 +0100
commit6269cc83e7c444f3050e0d7e640d079bae17aa68 (patch)
tree001a379d04ab83bea3960b7e0d91e92679f37514 /net/nfc/nci
parentmwifiex: update BSS parameters in dump_station_info() (diff)
downloadlinux-6269cc83e7c444f3050e0d7e640d079bae17aa68.tar.xz
linux-6269cc83e7c444f3050e0d7e640d079bae17aa68.zip
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: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/nfc/nci')
-rw-r--r--net/nfc/nci/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c
index 12d1d4d62672..a47e90c7d9d1 100644
--- a/net/nfc/nci/core.c
+++ b/net/nfc/nci/core.c
@@ -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;