drm/tilcdc: Fix hardcoded fail-return value in tilcdc_crtc_create()
Subsystems (3)
PATCH v2 1/1 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 <[email protected]>
--- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tilcdc/tilcdc_crtc.c +1 -1
@@ -1027,5 +1027,5 @@ int tilcdc_crtc_create(struct drm_device *dev) fail:tilcdc_crtc_destroy (crtc); -return -ENOMEM ; +return ret; }
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 4 lines · Jyri Sarha
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 <[email protected]>
Thanks. Looks good.
Reviewed-by Gabriel Krisman Bertazi <[email protected]>
Signature · 5 lines
Gabriel Krisman Bertazi _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel