mirror of
https://github.com/apache/nuttx.git
synced 2026-09-14 06:30:31 +00:00
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:
parent
8d2f49d6ff
commit
8ee6124677
1 changed files with 0 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue