OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.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
|
history
diff --git
a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
index
f80bf93
..
abcbcd9
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
;
}