[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACAvsv5SF18v7t8kbo0LPQi3L8U3xGGf70_UEfOnKdHu89yo9A@mail.gmail.com>
Date: Mon, 6 Jan 2020 08:08:01 +1000
From: Ben Skeggs <skeggsb@...il.com>
To: Wambui Karuga <wambui.karugax@...il.com>,
Ben Skeggs <bskeggs@...hat.com>,
Dave Airlie <airlied@...ux.ie>,
ML dri-devel <dri-devel@...ts.freedesktop.org>,
ML nouveau <nouveau@...ts.freedesktop.org>,
LKML <linux-kernel@...r.kernel.org>
Cc: Daniel Vetter <daniel@...ll.ch>
Subject: Re: [Nouveau] [PATCH] drm/nouveau: use NULL for pointer assignment.
On Thu, 2 Jan 2020 at 04:51, Daniel Vetter <daniel@...ll.ch> wrote:
>
> On Tue, Dec 31, 2019 at 11:57:34PM +0300, Wambui Karuga wrote:
> > Replace the use of 0 in the pointer assignment with NULL to address the
> > following sparse warning:
> > drivers/gpu/drm/nouveau/nouveau_hwmon.c:744:29: warning: Using plain integer as NULL pointer
> >
> > Signed-off-by: Wambui Karuga <wambui.karugax@...il.com>
>
> Reviewed-by: Daniel Vetter <daniel.vetter@...ll.ch>
>
> I'll check with Ben next week or so whether he wants to pick these up or
> whether I should stuff them into drm-misc-next.
I'll grab them.
Ben.
> -Daniel
>
> > ---
> > drivers/gpu/drm/nouveau/nouveau_hwmon.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/nouveau/nouveau_hwmon.c b/drivers/gpu/drm/nouveau/nouveau_hwmon.c
> > index d445c6f3fece..1c3104d20571 100644
> > --- a/drivers/gpu/drm/nouveau/nouveau_hwmon.c
> > +++ b/drivers/gpu/drm/nouveau/nouveau_hwmon.c
> > @@ -741,7 +741,7 @@ nouveau_hwmon_init(struct drm_device *dev)
> > special_groups[i++] = &pwm_fan_sensor_group;
> > }
> >
> > - special_groups[i] = 0;
> > + special_groups[i] = NULL;
> > hwmon_dev = hwmon_device_register_with_info(dev->dev, "nouveau", dev,
> > &nouveau_chip_info,
> > special_groups);
> > --
> > 2.17.1
> >
>
> --
> Daniel Vetter
> Software Engineer, Intel Corporation
> http://blog.ffwll.ch
> _______________________________________________
> Nouveau mailing list
> Nouveau@...ts.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/nouveau
Powered by blists - more mailing lists