diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-08-17 12:30:58 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-08-17 13:05:29 -0700 |
commit | 93576842718edf302b03f30b9915d3e704b0c78a (patch) | |
tree | 10be023b0a728391bc40e6b0294dbee48a4df00e /drivers/regulator | |
parent | d3fb9800146b7ad96b7604755c1a943fe1abbde2 (diff) | |
download | linux-93576842718edf302b03f30b9915d3e704b0c78a.tar.bz2 |
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')
-rw-r--r-- | drivers/regulator/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 999a94b9735e..5d61eb8f2a79 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(®ulator_list_mutex); |