diff options
| author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-08-17 03:00:58 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2015-08-17 16:05:29 -0400 |
| commit | 93576842718edf302b03f30b9915d3e704b0c78a (patch) | |
| tree | 10be023b0a728391bc40e6b0294dbee48a4df00e | |
| parent | d3fb9800146b7ad96b7604755c1a943fe1abbde2 (diff) | |
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>
| -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) | |||
| 1588 | { | 1588 | { |
| 1589 | struct regulator_dev *rdev; | 1589 | struct regulator_dev *rdev; |
| 1590 | 1590 | ||
| 1591 | if (regulator == NULL || IS_ERR(regulator)) | 1591 | if (IS_ERR_OR_NULL(regulator)) |
| 1592 | return; | 1592 | return; |
| 1593 | 1593 | ||
| 1594 | lockdep_assert_held_once(®ulator_list_mutex); | 1594 | lockdep_assert_held_once(®ulator_list_mutex); |
