diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-08-10 04:18:24 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-08-10 04:18:24 +0000 |
commit | 70b22f9bbb6cff2e07b1ea1200bbab24e37f3f45 (patch) | |
tree | 1b0150a74190093ee9162c1e1e818596812a8e61 /nuttx/arch/arm/src/lm3s | |
parent | 51a8fb9bd76bf226a803b7216e17736bfc55e4f7 (diff) | |
download | px4-nuttx-70b22f9bbb6cff2e07b1ea1200bbab24e37f3f45.tar.gz px4-nuttx-70b22f9bbb6cff2e07b1ea1200bbab24e37f3f45.tar.bz2 px4-nuttx-70b22f9bbb6cff2e07b1ea1200bbab24e37f3f45.zip |
Fix warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2837 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lm3s')
-rw-r--r-- | nuttx/arch/arm/src/lm3s/lm3s_gpioirq.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_gpioirq.c b/nuttx/arch/arm/src/lm3s/lm3s_gpioirq.c index 278d6df31..2879a6667 100644 --- a/nuttx/arch/arm/src/lm3s/lm3s_gpioirq.c +++ b/nuttx/arch/arm/src/lm3s/lm3s_gpioirq.c @@ -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; } |