Return-path: Received: from mail160.messagelabs.com ([216.82.253.99]:54838 "EHLO mail160.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754557Ab2DZR7h (ORCPT ); Thu, 26 Apr 2012 13:59:37 -0400 From: H Hartley Sweeten To: Linux Kernel Subject: [PATCH] NFC: nci/ntf.c: quiet sparse noise about plain integer as NULL pointer Date: Thu, 26 Apr 2012 10:59:28 -0700 CC: , , , , , MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-ID: <201204261059.28568.hartleys@visionengravers.com> (sfid-20120426_195958_417308_E374AB06) Sender: linux-wireless-owner@vger.kernel.org List-ID: 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 Cc: Lauro Ramos Venancio Cc: Aloisio Almeida Jr Cc: Samuel Ortiz Cc: "David S. Miller" --- diff --git a/net/nfc/nci/ntf.c b/net/nfc/nci/ntf.c index 99e1632..cb26461 100644 --- a/net/nfc/nci/ntf.c +++ b/net/nfc/nci/ntf.c @@ -497,7 +497,7 @@ static void nci_rf_deactivate_ntf_packet(struct nci_dev *ndev, /* drop partial rx data packet */ if (ndev->rx_data_reassembly) { kfree_skb(ndev->rx_data_reassembly); - ndev->rx_data_reassembly = 0; + ndev->rx_data_reassembly = NULL; } /* complete the data exchange transaction, if exists */