lkml.org 
[lkml]   [2015]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] staging: most: Use NULL instead of 0 in assignment of pointer
On Thu, Aug 20, 2015 at 12:12:51AM +0200, Anders Fridlund wrote:
> Fix sparse warning 'Using plain integer as NULL pointer' by replacing 0
> with NULL in the assignment.
>
> Signed-off-by: Anders Fridlund <anders.fridlund@gmail.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 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(
> --
> 1.9.1

Someone sent this patch before you did, sorry :(


\
 
 \ /
  Last update: 2015-09-03 19:01    [W:0.036 / U:0.720 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site