Re: [PATCH] pinctrl: samsung: Remove a redundant settting for ctrldesc->npins

From: Kyungmin Park
Date: Wed Nov 07 2012 - 08:35:13 EST


Acked-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>

On Wed, Nov 7, 2012 at 12:28 AM, Axel Lin <axel.lin@xxxxxxxxxx> wrote:
> Set it once is enough.
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx>
> ---
> drivers/pinctrl/pinctrl-samsung.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/pinctrl/pinctrl-samsung.c b/drivers/pinctrl/pinctrl-samsung.c
> index fc34cac..1307283 100644
> --- a/drivers/pinctrl/pinctrl-samsung.c
> +++ b/drivers/pinctrl/pinctrl-samsung.c
> @@ -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 majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/