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

gpio: omap: Remove set but not used variable 'dev'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/gpio/gpio-omap.c: In function 'gpio_omap_cpu_notifier':
drivers/gpio/gpio-omap.c:1327:17: warning:
variable 'dev' set but not used [-Wunused-but-set-variable]

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

YueHaibing and committed by
Linus Walleij
850d434e c4791bc6

-2
-2
drivers/gpio/gpio-omap.c
··· 1306 1306 unsigned long cmd, void *v) 1307 1307 { 1308 1308 struct gpio_bank *bank; 1309 - struct device *dev; 1310 1309 unsigned long flags; 1311 1310 1312 1311 bank = container_of(nb, struct gpio_bank, nb); 1313 - dev = bank->chip.parent; 1314 1312 1315 1313 raw_spin_lock_irqsave(&bank->lock, flags); 1316 1314 switch (cmd) {