Skip to content

Commit

Permalink
ARM: tegra: gpio: Fix unused variable warnings
Browse files Browse the repository at this point in the history
Change b0f18ed
(arm: tegra: Remove unused bogus irq enable/disable magic)
introduces warnings:
arch/arm/mach-tegra/gpio.c: In function 'tegra_gpio_resume':
arch/arm/mach-tegra/gpio.c:260: warning: unused variable 'i'
arch/arm/mach-tegra/gpio.c: In function 'tegra_gpio_suspend':
arch/arm/mach-tegra/gpio.c:283: warning: unused variable 'i'

Fix them, and fix a coding style issue on the same lines.

Signed-off-by: Colin Cross <ccross@android.com>
Acked-by: Erik Gilling <konkers@konkers.net>
  • Loading branch information
Colin Cross committed Mar 30, 2011
1 parent 0ce790e commit c8309ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/arm/mach-tegra/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ static void tegra_gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
void tegra_gpio_resume(void)
{
unsigned long flags;
int b, p, i;
int b;
int p;

local_irq_save(flags);

Expand All @@ -280,7 +281,8 @@ void tegra_gpio_resume(void)
void tegra_gpio_suspend(void)
{
unsigned long flags;
int b, p, i;
int b;
int p;

local_irq_save(flags);
for (b = 0; b < ARRAY_SIZE(tegra_gpio_banks); b++) {
Expand Down

0 comments on commit c8309ef

Please sign in to comment.