From: Dan Carpenter Date: Thu, 26 Jan 2012 06:13:31 +0000 (+0300) Subject: nfc: NULL vs zero in nci_activate_target() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6269cc83e7c444f3050e0d7e640d079bae17aa68;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Acked-by: Samuel Ortiz Signed-off-by: John W. Linville --- diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c index 12d1d4d6267..a47e90c7d9d 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;