Skip to content
Snippets Groups Projects
Commit 3da597db authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by Wolfgang Denk
Browse files

drivers/gpio/da8xx_gpio.c: Fix build warning


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: default avatarAnatolij Gustschin <agust@denx.de>
parent 92b09095
No related branches found
No related tags found
No related merge requests found
...@@ -205,9 +205,6 @@ void gpio_free(int gp) ...@@ -205,9 +205,6 @@ void gpio_free(int gp)
void gpio_toggle_value(int gp) void gpio_toggle_value(int gp)
{ {
struct davinci_gpio *bank;
bank = GPIO_BANK(gp);
gpio_set_value(gp, !gpio_get_value(gp)); gpio_set_value(gp, !gpio_get_value(gp));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment