gpio: extraxfs: fix returnvar.cocci warnings

Author: Julia Lawall <julia.lawall@lip6.fr>

Remove unneeded variable used to store return value.

Generated by: scripts/coccinelle/misc/returnvar.cocci

Signed-off-by: Fengguang Wu 
Signed-off-by: Julia Lawall 
Signed-off-by: Linus Walleij 
---
 drivers/gpio/gpio-etraxfs.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
 
diff --git a/drivers/gpio/gpio-etraxfs.c b/drivers/gpio/gpio-etraxfs.c
index 2ffcd9f..ca33bda 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)
BtrLinux
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.