projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e662642
)
regulator: axp20x: Remove unneeded NULL test against rdev
author
Axel Lin
<axel.lin@ingics.com>
Tue, 19 Mar 2019 03:36:07 +0000
(11:36 +0800)
committer
Mark Brown
<broonie@kernel.org>
Tue, 19 Mar 2019 11:54:44 +0000
(11:54 +0000)
rdev won't be NULL in .enable callback.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/axp20x-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/axp20x-regulator.c
b/drivers/regulator/axp20x-regulator.c
index fba8f58ab7696a99e0080f9e808c4b0af684eebb..8a366f66208eaf7209bad5cbda54e374cd1628c0 100644
(file)
--- a/
drivers/regulator/axp20x-regulator.c
+++ b/
drivers/regulator/axp20x-regulator.c
@@
-437,9
+437,6
@@
static int axp20x_regulator_enable_regmap(struct regulator_dev *rdev)
struct axp20x_dev *axp20x = rdev_get_drvdata(rdev);
const struct regulator_desc *desc;
- if (!rdev)
- return -EINVAL;
-
desc = rdev->desc;
switch (axp20x->variant) {