diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-11-05 08:25:12 +0100 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2010-11-30 16:13:25 +0100 |
commit | aa7a74040a989eeb7a9265550a2538863e842a93 (patch) | |
tree | 6068b9432ed1933ad5829039b5fd902076b8ef5d /drivers/regulator | |
parent | regulator: Staticise mc13783_powermisc_rmw() (diff) | |
download | linux-aa7a74040a989eeb7a9265550a2538863e842a93.tar.xz linux-aa7a74040a989eeb7a9265550a2538863e842a93.zip |
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: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index c62563322969..c3f93b401e90 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -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, ®ulator->dev_attr); goto link_name_err; } } |