Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1581503 > unrolled thread

Re: [PATCH 4/4] pinctrl: samsung: Remove unused local variable

Started byKrzysztof Kozlowski <krzk@kernel.org>
First post2017-02-15 18:50 +0100
Last post2017-02-16 11:40 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 4/4] pinctrl: samsung: Remove unused local variable Krzysztof Kozlowski <krzk@kernel.org> - 2017-02-15 18:50 +0100
    Re: [PATCH 4/4] pinctrl: samsung: Remove unused local variable Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2017-02-16 11:40 +0100

#1581503 — Re: [PATCH 4/4] pinctrl: samsung: Remove unused local variable

FromKrzysztof Kozlowski <krzk@kernel.org>
Date2017-02-15 18:50 +0100
SubjectRe: [PATCH 4/4] pinctrl: samsung: Remove unused local variable
Message-ID<tbbSj-2Z4-45@gated-at.bofh.it>
On Mon, Feb 13, 2017 at 10:11:06AM +0000, Charles Keepax wrote:
> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>

"The local variable drvdata is not used in samsung_gpio_set_direction()"?

Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>

Best regards,
Krzysztof

> ---
>  drivers/pinctrl/samsung/pinctrl-samsung.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c b/drivers/pinctrl/samsung/pinctrl-samsung.c
> index f291cbf..eb08f30 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];
> -- 
> 2.1.4
> 

[toc] | [next] | [standalone]


#1582451

FromCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Date2017-02-16 11:40 +0100
Message-ID<tbrDI-4Tz-19@gated-at.bofh.it>
In reply to#1581503
On Wed, Feb 15, 2017 at 07:43:03PM +0200, Krzysztof Kozlowski wrote:
> On Mon, Feb 13, 2017 at 10:11:06AM +0000, Charles Keepax wrote:
> > Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
> 
> "The local variable drvdata is not used in samsung_gpio_set_direction()"?
> 
> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
> 

Thanks, will update the commit messages with your
recommendations and resend.

Thanks,
Charles

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web