Commit 4eceb14f authored by Tobias Klauser's avatar Tobias Klauser Committed by Dmitry Torokhov
Browse files

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: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 86809173
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -559,7 +559,6 @@ static int gpio_keys_get_devtree_pdata(struct device *dev,
	pdata->rep = !!of_get_property(node, "autorepeat", NULL);
	pdata->rep = !!of_get_property(node, "autorepeat", NULL);


	/* First count the subnodes */
	/* First count the subnodes */
	pdata->nbuttons = 0;
	pp = NULL;
	pp = NULL;
	while ((pp = of_get_next_child(node, pp)))
	while ((pp = of_get_next_child(node, pp)))
		pdata->nbuttons++;
		pdata->nbuttons++;