Commit abf8315f authored by Jyri Sarha's avatar Jyri Sarha

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: default avatarJyri Sarha <jsarha@ti.com>
Reviewed-by: default avatarGabriel Krisman Bertazi <krisman@collabora.co.uk>
parent 3f81e134
...@@ -1036,5 +1036,5 @@ int tilcdc_crtc_create(struct drm_device *dev) ...@@ -1036,5 +1036,5 @@ int tilcdc_crtc_create(struct drm_device *dev)
fail: fail:
tilcdc_crtc_destroy(crtc); tilcdc_crtc_destroy(crtc);
return -ENOMEM; return ret;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment