From: Jyri Sarha Date: Tue, 31 Jan 2017 14:18:42 +0000 (+0200) Subject: drm/tilcdc: Fix hardcoded fail-return value in tilcdc_crtc_create() X-Git-Tag: MMI-PSA29.97-13-9~5970^2~4^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=abf8315f71dc5a2ee56fb60830dcb2861982dc91;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Reviewed-by: Gabriel Krisman Bertazi --- 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; }