summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/core.c
diff options
context:
space:
mode:
authorViresh Kumar2015-08-17 09:00:58 +0200
committerMark Brown2015-08-17 22:05:29 +0200
commit93576842718edf302b03f30b9915d3e704b0c78a (patch)
tree10be023b0a728391bc40e6b0294dbee48a4df00e /drivers/regulator/core.c
parentregulator: core: Spelling fix (diff)
downloadkernel-qcow2-linux-93576842718edf302b03f30b9915d3e704b0c78a.tar.gz
kernel-qcow2-linux-93576842718edf302b03f30b9915d3e704b0c78a.tar.xz
kernel-qcow2-linux-93576842718edf302b03f30b9915d3e704b0c78a.zip
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 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(&regulator_list_mutex);