projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8620604
)
drm: index i shadowed in 2nd loop
author
roel
<
[email protected]
>
Mon, 7 Mar 2011 17:00:34 +0000
(18:00 +0100)
committer
Dave Airlie
<
[email protected]
>
Mon, 7 Mar 2011 22:28:33 +0000
(08:28 +1000)
Index i was already used in thhe first loop
Signed-off-by: Roel Kluin <
[email protected]
>
Signed-off-by: Dave Airlie <
[email protected]
>
drivers/gpu/drm/drm_fb_helper.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_fb_helper.c
b/drivers/gpu/drm/drm_fb_helper.c
index 6977a1ce9d98171b9f5e43cc0127e13d87ea3b5b..f73ef4390db615fc499742af6b29f3aed6dae833 100644
(file)
--- a/
drivers/gpu/drm/drm_fb_helper.c
+++ b/
drivers/gpu/drm/drm_fb_helper.c
@@
-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++) {
@@
-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++;