diff options
author | Fred Chou <fred.chou.nd@gmail.com> | 2014-08-28 09:50:56 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-08-30 14:06:47 -0700 |
commit | 1a3c8834fe4e892281f857f74e46c15470c3e35c (patch) | |
tree | 68201aa863c6124cfc250daf6b59766ba736afa6 /drivers | |
parent | 7b1046e040670ee9fb2abe110fb24b33d91ada86 (diff) |
staging: vme: remove redundant else condition
The else condition is redundant after a return. Remove these redundant else conditions.
Signed-off-by: Fred Chou <fred.chou.nd@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/vme/devices/vme_pio2_gpio.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/staging/vme/devices/vme_pio2_gpio.c b/drivers/staging/vme/devices/vme_pio2_gpio.c index f00af0786af3..d8a118d39566 100644 --- a/drivers/staging/vme/devices/vme_pio2_gpio.c +++ b/drivers/staging/vme/devices/vme_pio2_gpio.c @@ -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; + + return 1; } + + if (card->bank[PIO2_CHANNEL_BANK[offset]].config != BOTH) + return 1; + + return 0; } static void pio2_gpio_set(struct gpio_chip *chip, unsigned int offset, |