projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f81e13
)
drm/tilcdc: Fix hardcoded fail-return value in tilcdc_crtc_create()
author
Jyri Sarha
<jsarha@ti.com>
Tue, 31 Jan 2017 14:18:42 +0000
(16:18 +0200)
committer
Jyri Sarha
<jsarha@ti.com>
Tue, 14 Mar 2017 12:28:56 +0000
(14:28 +0200)
Fix badly hardcoded return return value under fail-label. All goto
branches to the label set the "ret"-variable accordingly.
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
drivers/gpu/drm/tilcdc/tilcdc_crtc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
index f80bf9385e412db766424bf00cacd76458a64a8e..abcbcd9f5851f9130804278760b5ccbd15ad3e2f 100644
(file)
--- a/
drivers/gpu/drm/tilcdc/tilcdc_crtc.c
+++ b/
drivers/gpu/drm/tilcdc/tilcdc_crtc.c
@@
-1036,5
+1036,5
@@
int tilcdc_crtc_create(struct drm_device *dev)
fail:
tilcdc_crtc_destroy(crtc);
- return
-ENOMEM
;
+ return
ret
;
}