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
1 changed files with 0 additions and 2 deletions
|
@ -189,7 +189,6 @@ static void egpio_set(struct gpio_chip *chip, unsigned offset, int value)
|
||||||
unsigned long flag;
|
unsigned long flag;
|
||||||
struct egpio_chip *egpio;
|
struct egpio_chip *egpio;
|
||||||
struct egpio_info *ei;
|
struct egpio_info *ei;
|
||||||
unsigned bit;
|
|
||||||
int pos;
|
int pos;
|
||||||
int reg;
|
int reg;
|
||||||
int shift;
|
int shift;
|
||||||
|
@ -199,7 +198,6 @@ static void egpio_set(struct gpio_chip *chip, unsigned offset, int value)
|
||||||
|
|
||||||
egpio = gpiochip_get_data(chip);
|
egpio = gpiochip_get_data(chip);
|
||||||
ei = dev_get_drvdata(egpio->dev);
|
ei = dev_get_drvdata(egpio->dev);
|
||||||
bit = egpio_bit(ei, offset);
|
|
||||||
pos = egpio_pos(ei, offset);
|
pos = egpio_pos(ei, offset);
|
||||||
reg = egpio->reg_start + pos;
|
reg = egpio->reg_start + pos;
|
||||||
shift = pos << ei->reg_shift;
|
shift = pos << ei->reg_shift;
|
||||||
|
|
Loading…
Reference in a new issue