gpio: htc-egpio: Remove set but not used variable 'bit'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpio/gpio-htc-egpio.c: In function 'egpio_set': drivers/gpio/gpio-htc-egpio.c:192:20: warning: variable 'bit' set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
3c940660cb
commit
8898240aaa
|
@ -189,7 +189,6 @@ static void egpio_set(struct gpio_chip *chip, unsigned offset, int value)
|
|||
unsigned long flag;
|
||||
struct egpio_chip *egpio;
|
||||
struct egpio_info *ei;
|
||||
unsigned bit;
|
||||
int pos;
|
||||
int reg;
|
||||
int shift;
|
||||
|
@ -199,7 +198,6 @@ static void egpio_set(struct gpio_chip *chip, unsigned offset, int value)
|
|||
|
||||
egpio = gpiochip_get_data(chip);
|
||||
ei = dev_get_drvdata(egpio->dev);
|
||||
bit = egpio_bit(ei, offset);
|
||||
pos = egpio_pos(ei, offset);
|
||||
reg = egpio->reg_start + pos;
|
||||
shift = pos << ei->reg_shift;
|
||||
|
|
Loading…
Reference in New Issue
Block a user