RE: [PATCH] drm: radeon: replace 0 with NULL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> On Behalf Of
> Christian König
> Sent: 2019/November/26, Tuesday 5:10 AM
> To: Jules Irenge <jbi.octave@xxxxxxxxx>; Deucher, Alexander
> <Alexander.Deucher@xxxxxxx>
> Cc: Zhou, David(ChunMing) <David1.Zhou@xxxxxxx>; airlied@xxxxxxxx;
> linux-kernel@xxxxxxxxxxxxxxx; amd-gfx@xxxxxxxxxxxxxxxxxxxxx; dri-
> devel@xxxxxxxxxxxxxxxxxxxxx; daniel@xxxxxxxx
> 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@xxxxxxxxx>
> 
> Acked-by: Christian König <christian.koenig@xxxxxxx>


Reviewed-by: Zhan Liu <zhan.liu@xxxxxxx>


> 
> > ---
> >   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@xxxxxxxxxxxxxxxxxxxxx

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux