Input: omap-keypad - fix build warning
Fix the following build warning: drivers/input/keyboard/omap-keypad.c: In function 'omap_kp_probe': drivers/input/keyboard/omap-keypad.c:418: warning: 'row_idx' is used uninitialized in this function drivers/input/keyboard/omap-keypad.c:421: warning: 'col_idx' is used uninitialized in this function These variables are useful when cpu_is_omap24xx(), and otherwise just for useless cleanup. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
1164ec1ae4
commit
da3e4c885e
|
@ -352,6 +352,9 @@ static int __init omap_kp_probe(struct platform_device *pdev)
|
||||||
}
|
}
|
||||||
omap_set_gpio_direction(row_gpios[row_idx], 1);
|
omap_set_gpio_direction(row_gpios[row_idx], 1);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
col_idx = 0;
|
||||||
|
row_idx = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_timer(&omap_kp->timer, omap_kp_timer, (unsigned long)omap_kp);
|
setup_timer(&omap_kp->timer, omap_kp_timer, (unsigned long)omap_kp);
|
||||||
|
|
Reference in New Issue