diff options
author | Yang Li <yang.lee@linux.alibaba.com> | 2021-03-17 09:27:32 +0100 |
---|---|---|
committer | Patrik Jakobsson <patrik.r.jakobsson@gmail.com> | 2021-03-19 16:01:24 +0100 |
commit | 8f214d435607ac67648f5df54d3f8148073fbe13 (patch) | |
tree | 36a66961c39c5af1271d5ed20ccefefaf51f01da /drivers | |
parent | drm/meson: Fix few typo (diff) | |
download | linux-8f214d435607ac67648f5df54d3f8148073fbe13.tar.xz linux-8f214d435607ac67648f5df54d3f8148073fbe13.zip |
drm/gma500: use NULL instead of using plain integer as pointer
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@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1615969652-80225-1-git-send-email-yang.lee@linux.alibaba.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/gma500/psb_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c index 650af221c916..3850842d58f3 100644 --- a/drivers/gpu/drm/gma500/psb_drv.c +++ b/drivers/gpu/drm/gma500/psb_drv.c @@ -333,7 +333,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; |