aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_fb_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/drm_fb_helper.c')
-rw-r--r--drivers/gpu/drm/drm_fb_helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c
index d421f9d58d46..950720473967 100644
--- a/drivers/gpu/drm/drm_fb_helper.c
+++ b/drivers/gpu/drm/drm_fb_helper.c
@@ -677,7 +677,7 @@ int drm_fb_helper_setcmap(struct fb_cmap *cmap, struct fb_info *info)
677 struct drm_crtc_helper_funcs *crtc_funcs; 677 struct drm_crtc_helper_funcs *crtc_funcs;
678 u16 *red, *green, *blue, *transp; 678 u16 *red, *green, *blue, *transp;
679 struct drm_crtc *crtc; 679 struct drm_crtc *crtc;
680 int i, rc = 0; 680 int i, j, rc = 0;
681 int start; 681 int start;
682 682
683 for (i = 0; i < fb_helper->crtc_count; i++) { 683 for (i = 0; i < fb_helper->crtc_count; i++) {
@@ -690,7 +690,7 @@ int drm_fb_helper_setcmap(struct fb_cmap *cmap, struct fb_info *info)
690 transp = cmap->transp; 690 transp = cmap->transp;
691 start = cmap->start; 691 start = cmap->start;
692 692
693 for (i = 0; i < cmap->len; i++) { 693 for (j = 0; j < cmap->len; j++) {
694 u16 hred, hgreen, hblue, htransp = 0xffff; 694 u16 hred, hgreen, hblue, htransp = 0xffff;
695 695
696 hred = *red++; 696 hred = *red++;