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:
305c195
)
drm/nouveau/disp: Use NULL for pointers
author
Thierry Reding
<treding@nvidia.com>
Mon, 21 Jul 2014 12:02:58 +0000
(14:02 +0200)
committer
Ben Skeggs
<bskeggs@redhat.com>
Mon, 27 Jul 2015 08:56:09 +0000
(18:56 +1000)
The return type of exec_lookup() is struct nvkm_output *, so it should
return NULL rather than 0.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/disp/gf110.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvkm/engine/disp/gf110.c
b/drivers/gpu/drm/nouveau/nvkm/engine/disp/gf110.c
index 9ef6728c528d999ef625a9c1472de95c0c02ba24..7f2f05f78cc8cb7a17e7c7f2445c741981c9389a 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nvkm/engine/disp/gf110.c
+++ b/
drivers/gpu/drm/nouveau/nvkm/engine/disp/gf110.c
@@
-809,7
+809,7
@@
exec_lookup(struct nv50_disp_priv *priv, int head, int or, u32 ctrl,
case 0x00000900: type = DCB_OUTPUT_DP; mask = 2; break;
default:
nv_error(priv, "unknown SOR mc 0x%08x\n", ctrl);
- return
0x0000
;
+ return
NULL
;
}
}