From c15815831657a3b159eec316581158dfdeb987fe Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 10 Aug 2010 04:18:24 +0000 Subject: [PATCH] Fix warnings git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2837 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/lm3s/lm3s_gpioirq.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/arm/src/lm3s/lm3s_gpioirq.c b/arch/arm/src/lm3s/lm3s_gpioirq.c index 278d6df31a..2879a66679 100644 --- a/arch/arm/src/lm3s/lm3s_gpioirq.c +++ b/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; }