diff options
author | Jyri Sarha <jsarha@ti.com> | 2017-01-31 16:18:42 +0200 |
---|---|---|
committer | Jyri Sarha <jsarha@ti.com> | 2017-03-14 14:28:56 +0200 |
commit | abf8315f71dc5a2ee56fb60830dcb2861982dc91 (patch) | |
tree | a42b9b1028d0afccb73438e8c042be134ba1633e /drivers/gpu | |
parent | 3f81e1340706e9a7f854808e2f580c3106805d0c (diff) | |
download | linux-abf8315f71dc5a2ee56fb60830dcb2861982dc91.tar.bz2 |
drm/tilcdc: Fix hardcoded fail-return value in tilcdc_crtc_create()
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c index f80bf9385e41..abcbcd9f5851 100644 --- 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; } |