Commit 4102d9f8 authored by Javier M. Mellid's avatar Javier M. Mellid Committed by Greg Kroah-Hartman

staging: sm7xxfb: rename index var on sm712vga_setup

This patchs renames index var on sm712vga_setup.

Tested with SM712.
Signed-off-by: default avatarJavier M. Mellid <jmunhoz@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 95c59dc9
...@@ -764,7 +764,7 @@ static inline void sm7xx_init_hw(void) ...@@ -764,7 +764,7 @@ static inline void sm7xx_init_hw(void)
*/ */
static int __init sm712vga_setup(char *options) static int __init sm712vga_setup(char *options)
{ {
int index; int i;
if (!options || !*options) if (!options || !*options)
return -EINVAL; return -EINVAL;
...@@ -775,16 +775,14 @@ static int __init sm712vga_setup(char *options) ...@@ -775,16 +775,14 @@ static int __init sm712vga_setup(char *options)
pr_debug("sm712vga_setup = %s\n", options); pr_debug("sm712vga_setup = %s\n", options);
for (index = 0; for (i = 0; i < ARRAY_SIZE(vesa_mode_table); i++) {
index < ARRAY_SIZE(vesa_mode_table); if (strstr(options, vesa_mode_table[i].index)) {
index++) {
if (strstr(options, vesa_mode_table[index].index)) {
smtc_screen_info.lfb_width = smtc_screen_info.lfb_width =
vesa_mode_table[index].lfb_width; vesa_mode_table[i].lfb_width;
smtc_screen_info.lfb_height = smtc_screen_info.lfb_height =
vesa_mode_table[index].lfb_height; vesa_mode_table[i].lfb_height;
smtc_screen_info.lfb_depth = smtc_screen_info.lfb_depth =
vesa_mode_table[index].lfb_depth; vesa_mode_table[i].lfb_depth;
return 0; return 0;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment