mirror of https://gitee.com/openkylin/linux.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 <jsarha@ti.com> Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
This commit is contained in:
parent
3f81e13407
commit
abf8315f71
|
@ -1036,5 +1036,5 @@ int tilcdc_crtc_create(struct drm_device *dev)
|
|||
|
||||
fail:
|
||||
tilcdc_crtc_destroy(crtc);
|
||||
return -ENOMEM;
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue