Skip to content

Commit

Permalink
Revert "gpio: extraxfs: fix returnvar.cocci warnings"
Browse files Browse the repository at this point in the history
This reverts commit 5e22ec0.
  • Loading branch information
Linus Walleij committed Aug 31, 2015
1 parent 0c9fc10 commit 01e2dae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpio/gpio-etraxfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ 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])
Expand All @@ -313,7 +314,7 @@ static int etraxfs_gpio_irq_request_resources(struct irq_data *d)

out:
spin_unlock(&block->lock);
return -EBUSY;
return ret;
}

static void etraxfs_gpio_irq_release_resources(struct irq_data *d)
Expand Down

0 comments on commit 01e2dae

Please sign in to comment.