lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150801120744.4e575f71@clu.mchp-main.com>
Date:	Sat, 1 Aug 2015 12:07:44 +0200
From:	Christian Gromm <christian.gromm@...rochip.com>
To:	Michael Hornung <mhornung.linux@...il.com>
CC:	<gregkh@...uxfoundation.org>, <devel@...verdev.osuosl.org>,
	<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/1] linux-next: drivers: staging: most: Fix return
 value

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

> * Fix sparse warning "Using plain integer as NULL pointer"
> 
> Signed-off-by: Michael Hornung <mhornung.linux@...il.com>
Acked-by: Christian Gromm <christian.gromm@...rochip.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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ