From: Dirk Behme Date: Wed, 1 Nov 2006 19:59:30 +0000 (+0200) Subject: ARM: OMAP: Fix warning in omap-keypad X-Git-Tag: v2.6.19-omap1~92 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8e1f447ae88e804a96b9371fac8b1b6e4f442274;p=linux-2.6-omap-h63xx.git ARM: OMAP: Fix warning in omap-keypad Fix warning rivers/input/keyboard/omap-keypad.c: In function 'omap_kp_probe': drivers/input/keyboard/omap-keypad.c:450: warning: 'row_idx' is used uninitialized in this function drivers/input/keyboard/omap-keypad.c:453: warning: 'col_idx' is used uninitialized in this function Signed-off-by: Dirk Behme Signed-off-by: Tony Lindgren --- diff --git a/drivers/input/keyboard/omap-keypad.c b/drivers/input/keyboard/omap-keypad.c index 1ad970bb729..794bf4a25b7 100644 --- a/drivers/input/keyboard/omap-keypad.c +++ b/drivers/input/keyboard/omap-keypad.c @@ -317,7 +317,7 @@ static int __init omap_kp_probe(struct platform_device *pdev) struct omap_kp *omap_kp; struct input_dev *input_dev; struct omap_kp_platform_data *pdata = pdev->dev.platform_data; - int i, col_idx, row_idx, irq_idx, ret; + int i, col_idx = 0, row_idx = 0, irq_idx, ret; if (!pdata->rows || !pdata->cols || !pdata->keymap) { printk(KERN_ERR "No rows, cols or keymap from pdata\n");