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 plain integer for pointer
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 <rocco@devzen.net>
> ---
> 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 :(


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