From 007cd694332e6d5f57ef76431d2372c958b85a21 Mon Sep 17 00:00:00 2001 From: Jingoo Han Date: Fri, 8 Feb 2013 14:39:30 +0900 Subject: pinctrl: samsung: remove duplicated line This patch removes duplicated line of samsung_pinctrl_register(), because the number of pins is redundantly assigned twice. Reviewed-by: Tomasz Figa Acked-by: Kukjin Kim Signed-off-by: Jingoo Han Signed-off-by: Linus Walleij --- drivers/pinctrl/pinctrl-samsung.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/pinctrl/pinctrl-samsung.c') diff --git a/drivers/pinctrl/pinctrl-samsung.c b/drivers/pinctrl/pinctrl-samsung.c index fd7b24cd890..5c20ed05605 100644 --- a/drivers/pinctrl/pinctrl-samsung.c +++ b/drivers/pinctrl/pinctrl-samsung.c @@ -716,7 +716,6 @@ static int 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++) -- cgit v1.2.3-70-g09d2