Fix warnings

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2837 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2010-08-10 04:18:24 +00:00
parent f0d5de9049
commit c158158316

View File

@ -341,7 +341,6 @@ void gpio_irqenable(int irq)
uint32_t base;
uint32_t regval;
int pin;
int ret = ERROR;
if ((unsigned)gpioirq < NR_GPIO_IRQS)
{
@ -363,9 +362,7 @@ void gpio_irqenable(int irq)
regval |= pin;
putreg32(regval, base + LM3S_GPIO_IM_OFFSET);
irqrestore(flags);
ret = OK;
}
return ret;
}
/****************************************************************************
@ -383,7 +380,6 @@ void gpio_irqdisable(int irq)
uint32_t base;
uint32_t regval;
int pin;
int ret = ERROR;
if ((unsigned)gpioirq < NR_GPIO_IRQS)
{
@ -404,8 +400,6 @@ void gpio_irqdisable(int irq)
regval &= ~pin;
putreg32(regval, base + LM3S_GPIO_IM_OFFSET);
irqrestore(flags);
ret = OK;
}
return ret;
}