Input: gpio_keys - fix warning regarding uninitialized 'button' variable
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 13 Dec 2014 19:02:08 +0000 (11:02 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 14 Dec 2014 19:51:36 +0000 (11:51 -0800)
commit1d6a01365fd63fbf7c2709a183e2936728c8efad
tree6d2160512479c81447c8ee0b968eef2ef6d885a9
parent66aee90088da2f5fb73ba97ee8b5f4fda92e2b53
Input: gpio_keys - fix warning regarding uninitialized 'button' variable

Commit af906faabcf91eb1 ("Input: gpio_keys - fix warning regarding uninitialized
'irq' variable") introduced the following build warning:

drivers/input/keyboard/gpio_keys.c:625:16: warning: 'button' may be used uninitialized in this function [-Wmaybe-uninitialized]

Move the 'button' initialization to a proper location to avoid such warning.

Reported-by: Olof's autobuilder <build@lixom.net>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/gpio_keys.c