[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMeQTsbRo4_KfS5vpAjSUiOeL6Qn-yMfYPsWTEpmZTmgV7bfOQ@mail.gmail.com>
Date: Fri, 19 Mar 2021 16:04:14 +0100
From: Patrik Jakobsson <patrik.r.jakobsson@...il.com>
To: Yang Li <yang.lee@...ux.alibaba.com>
Cc: David Airlie <airlied@...ux.ie>, Daniel Vetter <daniel@...ll.ch>,
dri-devel <dri-devel@...ts.freedesktop.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] drm/gma500: use NULL instead of using plain integer as pointer
On Wed, Mar 17, 2021 at 9:27 AM Yang Li <yang.lee@...ux.alibaba.com> wrote:
>
> This fixes the following sparse warnings:
> drivers/gpu/drm/gma500/psb_drv.c:303:56: warning: Using plain integer as
> NULL pointer
>
> Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
> Signed-off-by: Yang Li <yang.lee@...ux.alibaba.com>
Applied to drm-misc-next
Thanks
Patrik
> ---
> drivers/gpu/drm/gma500/psb_drv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c
> index 0bcab06..c2aab62 100644
> --- a/drivers/gpu/drm/gma500/psb_drv.c
> +++ b/drivers/gpu/drm/gma500/psb_drv.c
> @@ -303,7 +303,7 @@ static int psb_driver_load(struct drm_device *dev, unsigned long flags)
>
> ret = -ENOMEM;
>
> - dev_priv->mmu = psb_mmu_driver_init(dev, 1, 0, 0);
> + dev_priv->mmu = psb_mmu_driver_init(dev, 1, 0, NULL);
> if (!dev_priv->mmu)
> goto out_err;
>
> --
> 1.8.3.1
>
Powered by blists - more mailing lists