pinctrl: samsung: Remove a redundant settting for ctrldesc->npins
PATCH 1/1 pinctrl: samsung: Remove a redundant settting for ctrldesc->npins
Set it once is enough.
Signed-off-by Axel Lin <[email protected]>
--- drivers/pinctrl/pinctrl-samsung.c | 1 - 1 file changed, 1 deletion(-)
drivers/pinctrl/pinctrl-samsung.c +0 -1
@@ -714,7 +714,6 @@ static int __devinit samsung_pinctrl_register(struct platform_device *pdev, } ctrldesc->pins = pindesc; ctrldesc->npins = drvdata->ctrl->nr_pins; - ctrldesc->npins = drvdata->ctrl->nr_pins;/* dynamically populate the pin number and pin name for pindesc */ for (pin =0 , pdesc = pindesc; pin < ctrldesc->npins; pin++, pdesc++)
Signature · 1 line
1.7.9.5
Acked-by Kyungmin Park <[email protected]>
Quoted 29 lines · Axel Lin
Set it once is enough.
Signed-off-by Axel Lin <[email protected]>--- drivers/pinctrl/pinctrl-samsung.c | 1 - 1 file changed, 1 deletion(-)drivers/pinctrl/pinctrl-samsung.c +0
-2@@ -714,7 +714,6 @@ static int __devinit samsung_pinctrl_register(struct platform_device *pdev, } ctrldesc->pins = pindesc; ctrldesc->npins = drvdata->ctrl->nr_pins; - ctrldesc->npins = drvdata->ctrl->nr_pins;/* dynamically populate the pin number and pin name for pindesc */ for (pin =0 , pdesc = pindesc; pin < ctrldesc->npins; pin++, pdesc++) --1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Quoted 3 lines · Axel Lin
Set it once is enough.
Signed-off-by Axel Lin <[email protected]>
Applied with Kyungmin's ACK, thanks!
Linus Walleij