summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/core.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-08-17 12:30:58 +0530
committerMark Brown <broonie@kernel.org>2015-08-17 13:05:29 -0700
commit93576842718edf302b03f30b9915d3e704b0c78a (patch)
tree10be023b0a728391bc40e6b0294dbee48a4df00e /drivers/regulator/core.c
parentd3fb9800146b7ad96b7604755c1a943fe1abbde2 (diff)
downloadop-kernel-dev-93576842718edf302b03f30b9915d3e704b0c78a.zip
op-kernel-dev-93576842718edf302b03f30b9915d3e704b0c78a.tar.gz
regulator: core: Use IS_ERR_OR_NULL()
Use IS_ERR_OR_NULL() rather than open coding it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/core.c')
-rw-r--r--drivers/regulator/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 999a94b..5d61eb8 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -1588,7 +1588,7 @@ static void _regulator_put(struct regulator *regulator)
{
struct regulator_dev *rdev;
- if (regulator == NULL || IS_ERR(regulator))
+ if (IS_ERR_OR_NULL(regulator))
return;
lockdep_assert_held_once(&regulator_list_mutex);
OpenPOWER on IntegriCloud