projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59c700c
)
regulator: Remove a redundant device_remove_file call in create_regulator
author
Axel Lin
<
[email protected]
>
Fri, 5 Nov 2010 07:25:12 +0000
(15:25 +0800)
committer
Liam Girdwood
<
[email protected]
>
Tue, 30 Nov 2010 15:13:25 +0000
(15:13 +0000)
We already have device_remove_file() in error path,
no need to call it before goto link_name_err.
Signed-off-by: Axel Lin <
[email protected]
>
Acked-by: Mark Brown <
[email protected]
>
Signed-off-by: Liam Girdwood <
[email protected]
>
drivers/regulator/core.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/core.c
b/drivers/regulator/core.c
index c62563322969732d5ccba7fa457ac11718c1dd27..c3f93b401e905d4ade335cd96dbe028ff25a29a7 100644
(file)
--- 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;
}
}