Skip to content

Commit dc5e0cd

Browse files
pcornuBenjamin-Gaignard
authored andcommitted
drm/stm: ltdc: Cleanup rename returned value
Rename the returned value from "res" to "ret" as it is more "readable". Signed-off-by: Philippe CORNU <[email protected]> Reviewed-by: Benjamin Gaignard <[email protected]> Signed-off-by: Benjamin Gaignard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 589b648 commit dc5e0cd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/gpu/drm/stm/ltdc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -760,17 +760,17 @@ static int ltdc_crtc_init(struct drm_device *ddev, struct drm_crtc *crtc)
760760
struct ltdc_device *ldev = ddev->dev_private;
761761
struct drm_plane *primary, *overlay;
762762
unsigned int i;
763-
int res;
763+
int ret;
764764

765765
primary = ltdc_plane_create(ddev, DRM_PLANE_TYPE_PRIMARY);
766766
if (!primary) {
767767
DRM_ERROR("Can not create primary plane\n");
768768
return -EINVAL;
769769
}
770770

771-
res = drm_crtc_init_with_planes(ddev, crtc, primary, NULL,
771+
ret = drm_crtc_init_with_planes(ddev, crtc, primary, NULL,
772772
&ltdc_crtc_funcs, NULL);
773-
if (res) {
773+
if (ret) {
774774
DRM_ERROR("Can not initialize CRTC\n");
775775
goto cleanup;
776776
}
@@ -783,7 +783,7 @@ static int ltdc_crtc_init(struct drm_device *ddev, struct drm_crtc *crtc)
783783
for (i = 1; i < ldev->caps.nb_layers; i++) {
784784
overlay = ltdc_plane_create(ddev, DRM_PLANE_TYPE_OVERLAY);
785785
if (!overlay) {
786-
res = -ENOMEM;
786+
ret = -ENOMEM;
787787
DRM_ERROR("Can not create overlay plane %d\n", i);
788788
goto cleanup;
789789
}
@@ -793,7 +793,7 @@ static int ltdc_crtc_init(struct drm_device *ddev, struct drm_crtc *crtc)
793793

794794
cleanup:
795795
ltdc_plane_destroy_all(ddev);
796-
return res;
796+
return ret;
797797
}
798798

799799
/*

0 commit comments

Comments
 (0)