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>
This commit is contained in:
parent
7b1046e040
commit
1a3c8834fe
1 changed files with 7 additions and 7 deletions
|
@ -58,15 +58,15 @@ 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,
|
||||
int value)
|
||||
|
|
Loading…
Add table
Reference in a new issue