[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1492529974-4332-1-git-send-email-hubiaoyong@gmail.com>
Date: Tue, 18 Apr 2017 23:39:34 +0800
From: hubiaoyong <hubiaoyong@...il.com>
To: lgirdwood@...il.com
Cc: broonie@...nel.org, linux-kernel@...r.kernel.org, hby2003@....com,
hubiaoyong <hubiaoyong@...il.com>
Subject: [PATCH] regulator/core.c: remove the else statement
in the function regulator_ena_gpio_free, the if branch contains
the return statement, so remove the else statement.
Signed-off-by: hubiaoyong <hubiaoyong@...il.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
Powered by blists - more mailing lists