diff options
author | Axel Lin <axel.lin@ingics.com> | 2019-03-19 11:36:07 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-03-19 11:54:44 +0000 |
commit | 969697de7fa6eee12fbe216f9603708932a78c0d (patch) | |
tree | 5fa43729e63ca17cc125ee1ba1caa76be0b7f0ab /drivers/regulator | |
parent | e66264273f5e2a6a12c558d78f829d1ea2383c5e (diff) |
regulator: axp20x: Remove unneeded NULL test against rdev
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>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/axp20x-regulator.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c index fba8f58ab769..8a366f66208e 100644 --- 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) { |