diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2012-06-12 02:55:32 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-06-12 03:38:15 -0400 |
commit | 4eceb14f669cb9e9d189019e8fcbf73577fe77a7 (patch) | |
tree | b9f4dd44a5057692ca45bbfeab6fc532c1ea00c2 | |
parent | 86809173ce32ef03bd4d0389dfc72df0c805e9c4 (diff) |
Input: gpio_keys - remove useless reinitialization of pdata->nbuttons
pdata is zeroed using memset just a few lines before, so there is no
need to set the nbuttons member to 0 again.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
-rw-r--r-- | drivers/input/keyboard/gpio_keys.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c index 62bfce468f9f..cbb1add43d5e 100644 --- a/drivers/input/keyboard/gpio_keys.c +++ b/drivers/input/keyboard/gpio_keys.c | |||
@@ -559,7 +559,6 @@ static int gpio_keys_get_devtree_pdata(struct device *dev, | |||
559 | pdata->rep = !!of_get_property(node, "autorepeat", NULL); | 559 | pdata->rep = !!of_get_property(node, "autorepeat", NULL); |
560 | 560 | ||
561 | /* First count the subnodes */ | 561 | /* First count the subnodes */ |
562 | pdata->nbuttons = 0; | ||
563 | pp = NULL; | 562 | pp = NULL; |
564 | while ((pp = of_get_next_child(node, pp))) | 563 | while ((pp = of_get_next_child(node, pp))) |
565 | pdata->nbuttons++; | 564 | pdata->nbuttons++; |