[PATCH] drm: radeon: replace 0 with NULL

Liu, Zhan Zhan.Liu at amd.com
Tue Nov 26 15:31:50 UTC 2019



> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of
> Christian König
> Sent: 2019/November/26, Tuesday 5:10 AM
> To: Jules Irenge <jbi.octave at gmail.com>; Deucher, Alexander
> <Alexander.Deucher at amd.com>
> Cc: Zhou, David(ChunMing) <David1.Zhou at amd.com>; airlied at linux.ie;
> linux-kernel at vger.kernel.org; amd-gfx at lists.freedesktop.org; dri-
> devel at lists.freedesktop.org; daniel at ffwll.ch
> Subject: Re: [PATCH] drm: radeon: replace 0 with NULL
> 
> Am 26.11.19 um 01:35 schrieb Jules Irenge:
> > Replace 0 with NULL to fix sparse tool  warning
> >   warning: Using plain integer as NULL pointer
> >
> > Signed-off-by: Jules Irenge <jbi.octave at gmail.com>
> 
> Acked-by: Christian König <christian.koenig at amd.com>

Reviewed-by: Zhan Liu <zhan.liu at amd.com>

> 
> > ---
> >   drivers/gpu/drm/radeon/radeon_audio.c | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/radeon/radeon_audio.c
> b/drivers/gpu/drm/radeon/radeon_audio.c
> > index b9aea5776d3d..2269cfced788 100644
> > --- a/drivers/gpu/drm/radeon/radeon_audio.c
> > +++ b/drivers/gpu/drm/radeon/radeon_audio.c
> > @@ -288,7 +288,7 @@ static void radeon_audio_interface_init(struct
> radeon_device *rdev)
> >   	} else {
> >   		rdev->audio.funcs = &r600_funcs;
> >   		rdev->audio.hdmi_funcs = &r600_hdmi_funcs;
> > -		rdev->audio.dp_funcs = 0;
> > +		rdev->audio.dp_funcs = NULL;
> >   	}
> >   }
> >
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.
> freedesktop.org%2Fmailman%2Flistinfo%2Famd-
> gfx&data=02%7C01%7Czhan.liu%40amd.com%7C35832a2894894c44817d
> 08d77258c9ea%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C1%7C63710
> 3597981850872&sdata=FdouIs7Prawx3UhK4z8AEgV0nYJJcyrGNp56G0w
> hNZU%3D&reserved=0


More information about the amd-gfx mailing list