[U-Boot] [PATCH] drivers/gpio/da8xx_gpio.c: Fix build warning

Anatolij Gustschin agust at denx.de
Wed Dec 7 22:47:47 CET 2011


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 at denx.de>
---
 drivers/gpio/da8xx_gpio.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/gpio/da8xx_gpio.c b/drivers/gpio/da8xx_gpio.c
index 7a15614..74b58e8 100644
--- a/drivers/gpio/da8xx_gpio.c
+++ b/drivers/gpio/da8xx_gpio.c
@@ -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));
 }
 
-- 
1.7.5.4



More information about the U-Boot mailing list