drm/tilcdc: Fix hardcoded fail-return value in tilcdc_crtc_create()
authorJyri Sarha <jsarha@ti.com>
Tue, 31 Jan 2017 14:18:42 +0000 (16:18 +0200)
committerJyri Sarha <jsarha@ti.com>
Tue, 14 Mar 2017 12:28:56 +0000 (14:28 +0200)
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>
drivers/gpu/drm/tilcdc/tilcdc_crtc.c

index f80bf9385e412db766424bf00cacd76458a64a8e..abcbcd9f5851f9130804278760b5ccbd15ad3e2f 100644 (file)
@@ -1036,5 +1036,5 @@ int tilcdc_crtc_create(struct drm_device *dev)
 
 fail:
        tilcdc_crtc_destroy(crtc);
-       return -ENOMEM;
+       return ret;
 }