OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3fb980
)
regulator: core: Use IS_ERR_OR_NULL()
author
Viresh Kumar
<viresh.kumar@linaro.org>
Mon, 17 Aug 2015 07:00:58 +0000
(12:30 +0530)
committer
Mark Brown
<broonie@kernel.org>
Mon, 17 Aug 2015 20:05:29 +0000
(13:05 -0700)
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>
drivers/regulator/core.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/core.c
b/drivers/regulator/core.c
index
999a94b
..
5d61eb8
100644
(file)
--- 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);