projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8680917
)
Input: gpio_keys - remove useless reinitialization of pdata->nbuttons
author
Tobias Klauser
<tklauser@distanz.ch>
Tue, 12 Jun 2012 06:55:32 +0000
(23:55 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Tue, 12 Jun 2012 07:38:15 +0000
(
00:38
-0700)
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>
drivers/input/keyboard/gpio_keys.c
patch
|
blob
|
history
diff --git
a/drivers/input/keyboard/gpio_keys.c
b/drivers/input/keyboard/gpio_keys.c
index
62bfce4
..
cbb1add
100644
(file)
--- 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,
pdata->rep = !!of_get_property(node, "autorepeat", NULL);
/* First count the subnodes */
- pdata->nbuttons = 0;
pp = NULL;
while ((pp = of_get_next_child(node, pp)))
pdata->nbuttons++;