Commit 1a3c8834 authored by Fred Chou's avatar Fred Chou Committed by Greg Kroah-Hartman

staging: vme: remove redundant else condition

The else condition is redundant after a return. Remove these redundant else conditions.
Signed-off-by: default avatarFred Chou <fred.chou.nd@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7b1046e0
......@@ -58,14 +58,14 @@ static int pio2_gpio_get(struct gpio_chip *chip, unsigned int offset)
if (reg & PIO2_CHANNEL_BIT[offset]) {
if (card->bank[PIO2_CHANNEL_BANK[offset]].config != BOTH)
return 0;
else
return 1;
} else {
}
if (card->bank[PIO2_CHANNEL_BANK[offset]].config != BOTH)
return 1;
else
return 0;
}
}
static void pio2_gpio_set(struct gpio_chip *chip, unsigned int offset,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment