Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753918AbbHSPOp (ORCPT ); Wed, 19 Aug 2015 11:14:45 -0400 Received: from exsmtp03.microchip.com ([198.175.253.49]:61913 "EHLO email.microchip.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751042AbbHSPOo (ORCPT ); Wed, 19 Aug 2015 11:14:44 -0400 Date: Wed, 19 Aug 2015 17:14:34 +0200 From: Christian Gromm To: Ronit Halder CC: , , , Subject: Re: [PATCH] Staging: most: Use NULL instead of zero Message-ID: <20150819171434.794c698d@muaddib> In-Reply-To: <1439963229-13843-1-git-send-email-ronit.crj@gmail.com> References: <1439963229-13843-1-git-send-email-ronit.crj@gmail.com> Organization: MCHP X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1173 Lines: 32 On Wed, 19 Aug 2015 11:17:09 +0530 Ronit Halder wrote: > This patch fixes the warning generated by sparse > "Using plain integer as NULL pointer" by using NULL > instead of zero. > > Signed-off-by: Ronit halder Acked-by: Christian Gromm > --- > drivers/staging/most/aim-network/networking.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/most/aim-network/networking.c b/drivers/staging/most/aim-network/networking.c > index c8ab239..a1e1bce 100644 > --- a/drivers/staging/most/aim-network/networking.c > +++ b/drivers/staging/most/aim-network/networking.c > @@ -295,7 +295,7 @@ static void most_net_rm_netdev_safe(struct net_dev_context *nd) > > unregister_netdev(nd->dev); > free_netdev(nd->dev); > - nd->dev = 0; > + nd->dev = NULL; > } > > static struct net_dev_context *get_net_dev_context( -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/