Messages in this thread Patch in this message | | | From | hubiaoyong <> | Subject | [PATCH] regulator/core.c: remove the else statement | Date | Tue, 18 Apr 2017 23:39:34 +0800 |
| |
in the function regulator_ena_gpio_free, the if branch contains the return statement, so remove the else statement.
Signed-off-by: hubiaoyong <hubiaoyong@gmail.com> --- 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
| |