mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 09:14:07 -04:00
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>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user