Skip to content

Commit

Permalink
drm: index i shadowed in 2nd loop
Browse files Browse the repository at this point in the history
Index i was already used in thhe first loop

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
  • Loading branch information
RoelKluin authored and airlied committed Mar 7, 2011
1 parent 8620604 commit 062ac62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/drm_fb_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ int drm_fb_helper_setcmap(struct fb_cmap *cmap, struct fb_info *info)
struct drm_crtc_helper_funcs *crtc_funcs;
u16 *red, *green, *blue, *transp;
struct drm_crtc *crtc;
int i, rc = 0;
int i, j, rc = 0;
int start;

for (i = 0; i < fb_helper->crtc_count; i++) {
Expand All @@ -685,7 +685,7 @@ int drm_fb_helper_setcmap(struct fb_cmap *cmap, struct fb_info *info)
transp = cmap->transp;
start = cmap->start;

for (i = 0; i < cmap->len; i++) {
for (j = 0; j < cmap->len; j++) {
u16 hred, hgreen, hblue, htransp = 0xffff;

hred = *red++;
Expand Down

0 comments on commit 062ac62

Please sign in to comment.