From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932665AbbICQmN (ORCPT ); Thu, 3 Sep 2015 12:42:13 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:40181 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932569AbbICQmK (ORCPT ); Thu, 3 Sep 2015 12:42:10 -0400 Date: Thu, 3 Sep 2015 09:42:10 -0700 From: Greg KH To: Rocco Folino Cc: christian.gromm@microchip.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging/most: Use NULL instead of plain integer for pointer Message-ID: <20150903164210.GA26459@kroah.com> References: <49326203470b591c3010a62a243fbdb055d1c669.1440196833.git.rocco@devzen.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49326203470b591c3010a62a243fbdb055d1c669.1440196833.git.rocco@devzen.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 22, 2015 at 12:41:54AM +0200, Rocco Folino wrote: > This patch fixes the warning generated by sparse: "Using plain integer > as NULL pointer" by replacing 0s with NULL. > > Signed-off-by: Rocco Folino > --- > drivers/staging/most/aim-network/networking.c | 2 +- > drivers/staging/most/aim-v4l2/video.c | 2 +- > drivers/staging/most/hdm-dim2/dim2_hdm.c | 8 ++++---- > 3 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/drivers/staging/most/aim-network/networking.c b/drivers/staging/most/aim-network/networking.c > index c8ab2399faad..a1e1bce16296 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; > } Someone sent a patch already that did this change, so this patch doesn't apply anymore :(