Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1197962

Re: [PATCH 1/1] linux-next: drivers: staging: most: Fix return value

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Christian Gromm <christian.gromm@microchip.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/1] linux-next: drivers: staging: most: Fix return value
Date Sat, 01 Aug 2015 12:20:01 +0200
Message-ID <pSC3v-1Jd-1@gated-at.bofh.it> (permalink)
References <pSoWC-7Xz-9@gated-at.bofh.it>
X-Original-To Michael Hornung <mhornung.linux@gmail.com>
X-Greylist delayed 306 seconds by postgrey-1.27 at vger.kernel.org; Sat, 01 Aug 2015 06:16:40 EDT
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 robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 30
Organization linux.* mail to news gateway
X-Original-Cc <gregkh@linuxfoundation.org>, <devel@driverdev.osuosl.org>, <linux-kernel@vger.kernel.org>
X-Original-Date Sat, 1 Aug 2015 12:07:44 +0200
X-Original-Message-ID <20150801120744.4e575f71@clu.mchp-main.com>
X-Original-References <1438373897-18714-1-git-send-email-mhornung.linux@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1197962

Show key headers only | View raw


On Fri, 31 Jul 2015 22:18:17 +0200
Michael Hornung <mhornung.linux@gmail.com> wrote:

> * Fix sparse warning "Using plain integer as NULL pointer"
> 
> Signed-off-by: Michael Hornung <mhornung.linux@gmail.com>
Acked-by: Christian Gromm <christian.gromm@microchip.com>
> ---
>  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/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH 1/1] linux-next: drivers: staging: most: Fix return  value Christian Gromm <christian.gromm@microchip.com> - 2015-08-01 12:20 +0200

csiph-web