mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-27 01:11:31 +00:00
drm: index i shadowed in 2nd loop
Index i was already used in thhe first loop Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
862060414b
commit
062ac622e0
1 changed files with 2 additions and 2 deletions
|
|
@ -672,7 +672,7 @@ int drm_fb_helper_setcmap(struct fb_cmap *cmap, struct fb_info *info)
|
||||||
struct drm_crtc_helper_funcs *crtc_funcs;
|
struct drm_crtc_helper_funcs *crtc_funcs;
|
||||||
u16 *red, *green, *blue, *transp;
|
u16 *red, *green, *blue, *transp;
|
||||||
struct drm_crtc *crtc;
|
struct drm_crtc *crtc;
|
||||||
int i, rc = 0;
|
int i, j, rc = 0;
|
||||||
int start;
|
int start;
|
||||||
|
|
||||||
for (i = 0; i < fb_helper->crtc_count; i++) {
|
for (i = 0; i < fb_helper->crtc_count; i++) {
|
||||||
|
|
@ -685,7 +685,7 @@ int drm_fb_helper_setcmap(struct fb_cmap *cmap, struct fb_info *info)
|
||||||
transp = cmap->transp;
|
transp = cmap->transp;
|
||||||
start = cmap->start;
|
start = cmap->start;
|
||||||
|
|
||||||
for (i = 0; i < cmap->len; i++) {
|
for (j = 0; j < cmap->len; j++) {
|
||||||
u16 hred, hgreen, hblue, htransp = 0xffff;
|
u16 hred, hgreen, hblue, htransp = 0xffff;
|
||||||
|
|
||||||
hred = *red++;
|
hred = *red++;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue