Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: mockup: remove unused variable gc

The variable gc is assigned but never read and is redundant. Remove it.
Cleans up clang warning:

drivers/gpio/gpio-mockup.c:169:2: warning: Value stored to 'gc' is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Colin Ian King and committed by
Linus Walleij
02b6bddb 72c7c78e

-2
-2
drivers/gpio/gpio-mockup.c
··· 153 153 struct gpio_mockup_chip *chip; 154 154 struct seq_file *sfile; 155 155 struct gpio_desc *desc; 156 - struct gpio_chip *gc; 157 156 int rv, val; 158 157 159 158 rv = kstrtoint_from_user(usr_buf, size, 0, &val); ··· 165 166 priv = sfile->private; 166 167 desc = priv->desc; 167 168 chip = priv->chip; 168 - gc = &chip->gc; 169 169 170 170 gpiod_set_value_cansleep(desc, val); 171 171 irq_sim_fire(&chip->irqsim, priv->offset);