Commit 969697de authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

regulator: axp20x: Remove unneeded NULL test against rdev

rdev won't be NULL in .enable callback.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e6626427
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment