Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa7a7404 authored by Axel Lin's avatar Axel Lin Committed by Liam Girdwood
Browse files

regulator: Remove a redundant device_remove_file call in create_regulator



We already have device_remove_file() in error path,
no need to call it before goto link_name_err.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 59c700cf
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1052,7 +1052,6 @@ static struct regulator *create_regulator(struct regulator_dev *rdev,
			printk(KERN_WARNING
			       "%s: could not add device link %s err %d\n",
			       __func__, dev->kobj.name, err);
			device_remove_file(dev, &regulator->dev_attr);
			goto link_name_err;
		}
	}