summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2015-08-13 17:41:16 +0200
committerLinus Walleij <linus.walleij@linaro.org>2015-08-25 16:27:33 +0200
commit5e22ec019823b0204720e1ad9a5866c638332b3a (patch)
tree2aa9a9fa9650db5770521a3147c2de7faea4e32e /drivers/gpio
parenta0a8bcf4670c2c696e6e83742539a5e0dd7a62d6 (diff)
gpio: extraxfs: fix returnvar.cocci warnings
Remove unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-etraxfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-etraxfs.c b/drivers/gpio/gpio-etraxfs.c
index 2ffcd9fdd1f2..ca33bda8ec55 100644
--- a/drivers/gpio/gpio-etraxfs.c
+++ b/drivers/gpio/gpio-etraxfs.c
@@ -292,7 +292,6 @@ static int etraxfs_gpio_irq_request_resources(struct irq_data *d)
struct etraxfs_gpio_chip *chip = irq_data_get_irq_chip_data(d);
struct etraxfs_gpio_block *block = chip->block;
unsigned int grpirq = etraxfs_gpio_to_group_irq(d->hwirq);
- int ret = -EBUSY;
spin_lock(&block->lock);
if (block->group[grpirq])
@@ -314,7 +313,7 @@ static int etraxfs_gpio_irq_request_resources(struct irq_data *d)
out:
spin_unlock(&block->lock);
- return ret;
+ return -EBUSY;
}
static void etraxfs_gpio_irq_release_resources(struct irq_data *d)