projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc435de
)
drm/sti: Adjust two checks for null pointers in sti_hqvdp_probe()
author
Markus Elfring
<
[email protected]
>
Fri, 5 May 2017 13:33:19 +0000
(15:33 +0200)
committer
Benjamin Gaignard
<
[email protected]
>
Tue, 9 May 2017 12:46:19 +0000
(14:46 +0200)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The script “checkpatch.pl” pointed information out like the following.
Comparison to NULL could be written !…
Thus fix the affected source code places.
Signed-off-by: Markus Elfring <
[email protected]
>
Signed-off-by: Benjamin Gaignard <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/sti/sti_hqvdp.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/sti/sti_hqvdp.c
b/drivers/gpu/drm/sti/sti_hqvdp.c
index 372ea294da80e4997921b1eb02422be3422f9476..a1c161f77804424e0014c93478f92847559ea484 100644
(file)
--- a/
drivers/gpu/drm/sti/sti_hqvdp.c
+++ b/
drivers/gpu/drm/sti/sti_hqvdp.c
@@
-1356,12
+1356,12
@@
static int sti_hqvdp_probe(struct platform_device *pdev)
/* Get Memory resources */
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (
res == NULL
) {
+ if (
!res
) {
DRM_ERROR("Get memory resource failed\n");
return -ENXIO;
}
hqvdp->regs = devm_ioremap(dev, res->start, resource_size(res));
- if (
hqvdp->regs == NULL
) {
+ if (
!hqvdp->regs
) {
DRM_ERROR("Register mapping failed\n");
return -ENXIO;
}