From: Charles Keepax Date: Thu, 16 Feb 2017 13:27:15 +0000 (+0000) Subject: pinctrl: samsung: Remove unused local variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=84b90e0cabf6b71a1d6292fbe936f669328a3881;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git pinctrl: samsung: Remove unused local variable The local variable drvdata is not used in samsung_gpio_set_direction. Signed-off-by: Charles Keepax Reviewed-by: Krzysztof Kozlowski Signed-off-by: Linus Walleij --- diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c b/drivers/pinctrl/samsung/pinctrl-samsung.c index f9ddba7decc1..0d2989d98bc3 100644 --- a/drivers/pinctrl/samsung/pinctrl-samsung.c +++ b/drivers/pinctrl/samsung/pinctrl-samsung.c @@ -566,13 +566,11 @@ static int samsung_gpio_set_direction(struct gpio_chip *gc, { const struct samsung_pin_bank_type *type; struct samsung_pin_bank *bank; - struct samsung_pinctrl_drv_data *drvdata; void __iomem *reg; u32 data, mask, shift; bank = gpiochip_get_data(gc); type = bank->type; - drvdata = bank->drvdata; reg = bank->pctl_base + bank->pctl_offset + type->reg_offset[PINCFG_TYPE_FUNC];