]> git.sur5r.net Git - u-boot/commitdiff
drivers/gpio/da8xx_gpio.c: Fix build warning
authorAnatolij Gustschin <agust@denx.de>
Wed, 7 Dec 2011 11:47:47 +0000 (11:47 +0000)
committerWolfgang Denk <wd@denx.de>
Fri, 9 Dec 2011 09:54:38 +0000 (10:54 +0100)
Fix:
da8xx_gpio.c: In function 'gpio_toggle_value':
da8xx_gpio.c:208:23: warning: variable 'bank' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
drivers/gpio/da8xx_gpio.c

index 7a1561429d885fca9db1781fd92b7497d0f1f771..74b58e889f2bfd916f771505dd2967508319cc18 100644 (file)
@@ -205,9 +205,6 @@ void gpio_free(int gp)
 
 void gpio_toggle_value(int gp)
 {
-       struct davinci_gpio *bank;
-
-       bank = GPIO_BANK(gp);
        gpio_set_value(gp, !gpio_get_value(gp));
 }