Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751346AbbHAKQm (ORCPT ); Sat, 1 Aug 2015 06:16:42 -0400 Received: from exsmtp01.microchip.com ([198.175.253.37]:21536 "EHLO email.microchip.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751180AbbHAKQl (ORCPT ); Sat, 1 Aug 2015 06:16:41 -0400 X-Greylist: delayed 306 seconds by postgrey-1.27 at vger.kernel.org; Sat, 01 Aug 2015 06:16:40 EDT Date: Sat, 1 Aug 2015 12:07:44 +0200 From: Christian Gromm To: Michael Hornung CC: , , Subject: Re: [PATCH 1/1] linux-next: drivers: staging: most: Fix return value Message-ID: <20150801120744.4e575f71@clu.mchp-main.com> In-Reply-To: <1438373897-18714-1-git-send-email-mhornung.linux@gmail.com> References: <1438373897-18714-1-git-send-email-mhornung.linux@gmail.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; 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: 1112 Lines: 30 On Fri, 31 Jul 2015 22:18:17 +0200 Michael Hornung wrote: > * Fix sparse warning "Using plain integer as NULL pointer" > > Signed-off-by: Michael Hornung 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 4639c49..c8ab239 100644 > --- a/drivers/staging/most/aim-network/networking.c > +++ b/drivers/staging/most/aim-network/networking.c > @@ -311,7 +311,7 @@ static struct net_dev_context *get_net_dev_context( > } > } > spin_unlock(&list_lock); > - return 0; > + return NULL; > } > > static int aim_probe_channel(struct most_interface *iface, int channel_idx, -- 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/