mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00: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:
parent
e66264273f
commit
969697de7f
1 changed files with 0 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue