[PATCH] regulator/core.c: remove the else statement

From: hubiaoyong
Date: Tue Apr 18 2017 - 11:40:42 EST


in the function regulator_ena_gpio_free, the if branch contains
the return statement, so remove the else statement.

Signed-off-by: hubiaoyong <hubiaoyong@xxxxxxxxx>
---
drivers/regulator/core.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 53d4fc7..de3d07a 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -2007,9 +2007,8 @@ static void regulator_ena_gpio_free(struct regulator_dev *rdev)
kfree(pin);
rdev->ena_pin = NULL;
return;
- } else {
- pin->request_count--;
}
+ pin->request_count--;
}
}
}
--
1.7.1