projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67a175a
)
drm/gma500: use NULL instead of using plain integer as pointer
author
Yang Li
<yang.lee@linux.alibaba.com>
Wed, 17 Mar 2021 08:27:32 +0000
(16:27 +0800)
committer
Patrik Jakobsson
<patrik.r.jakobsson@gmail.com>
Fri, 19 Mar 2021 15:01:24 +0000
(16:01 +0100)
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
drivers/gpu/drm/gma500/psb_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/gma500/psb_drv.c
b/drivers/gpu/drm/gma500/psb_drv.c
index 650af221c916e34eef84189a6db4bc8a970704ba..3850842d58f3c929377deca3cbfa84db52a53119 100644
(file)
--- 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;