pinctrl: samsung: Remove unused local variable
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 16 Feb 2017 13:27:15 +0000 (13:27 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 14 Mar 2017 13:42:19 +0000 (14:42 +0100)
The local variable drvdata is not used in samsung_gpio_set_direction.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/samsung/pinctrl-samsung.c

index f9ddba7..0d2989d 100644 (file)
@@ -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];