Skip to content

Commit

Permalink
staging: sm7xxfb: rename index var on sm712vga_setup
Browse files Browse the repository at this point in the history
This patchs renames index var on sm712vga_setup.

Tested with SM712.

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Javier M. Mellid authored and Greg Kroah-Hartman committed Jul 17, 2012
1 parent 95c59dc commit 4102d9f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions drivers/staging/sm7xxfb/sm7xxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ static inline void sm7xx_init_hw(void)
*/
static int __init sm712vga_setup(char *options)
{
int index;
int i;

if (!options || !*options)
return -EINVAL;
Expand All @@ -775,16 +775,14 @@ static int __init sm712vga_setup(char *options)

pr_debug("sm712vga_setup = %s\n", options);

for (index = 0;
index < ARRAY_SIZE(vesa_mode_table);
index++) {
if (strstr(options, vesa_mode_table[index].index)) {
for (i = 0; i < ARRAY_SIZE(vesa_mode_table); i++) {
if (strstr(options, vesa_mode_table[i].index)) {
smtc_screen_info.lfb_width =
vesa_mode_table[index].lfb_width;
vesa_mode_table[i].lfb_width;
smtc_screen_info.lfb_height =
vesa_mode_table[index].lfb_height;
vesa_mode_table[i].lfb_height;
smtc_screen_info.lfb_depth =
vesa_mode_table[index].lfb_depth;
vesa_mode_table[i].lfb_depth;
return 0;
}
}
Expand Down

0 comments on commit 4102d9f

Please sign in to comment.