diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2018-10-16 02:58:25 -0400 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2018-11-23 06:51:22 -0500 |
commit | 4d486f18d91b1876040bf87e9ad78981a08b15a6 (patch) | |
tree | ad460b6e3f16e491500d201cc60391d3acdead48 | |
parent | 5dc34af19c98171174f563a4b9f79a902bf665b4 (diff) |
drm: rcar-du: Fix the return value in case of error in 'rcar_du_crtc_set_crc_source()'
We return 0 unconditionally in 'rcar_du_crtc_set_crc_source()'.
However, 'ret' is set to some error codes if some function calls fail.
Return 'ret' instead to propagate the error code.
Fixes: 47a52d024e89 ("media: drm: rcar-du: Add support for CRC computation")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
-rw-r--r-- | drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c index 7406ffd1ab94..d18a342626b5 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c | |||
@@ -1002,7 +1002,7 @@ unlock: | |||
1002 | drm_modeset_drop_locks(&ctx); | 1002 | drm_modeset_drop_locks(&ctx); |
1003 | drm_modeset_acquire_fini(&ctx); | 1003 | drm_modeset_acquire_fini(&ctx); |
1004 | 1004 | ||
1005 | return 0; | 1005 | return ret; |
1006 | } | 1006 | } |
1007 | 1007 | ||
1008 | static const struct drm_crtc_funcs crtc_funcs_gen2 = { | 1008 | static const struct drm_crtc_funcs crtc_funcs_gen2 = { |