Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82506
b: refs/heads/master
c: 839dc9f
h: refs/heads/master
v: v3
  • Loading branch information
Andres Salomon authored and Anton Vorontsov committed Feb 1, 2008
1 parent 9632e33 commit 5cb108b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8efe444038a205e79b38b7ad03878824901849a8
refs/heads/master: 839dc9f105c0d856f9a0be48fb3bd0982ff5df5b
6 changes: 2 additions & 4 deletions trunk/drivers/power/power_supply_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ int power_supply_create_attrs(struct power_supply *psy)
&power_supply_attrs[psy->properties[j]]);
statics_failed:
while (i--)
device_remove_file(psy->dev,
&power_supply_static_attrs[psy->properties[i]]);
device_remove_file(psy->dev, &power_supply_static_attrs[i]);
succeed:
return rc;
}
Expand All @@ -166,8 +165,7 @@ void power_supply_remove_attrs(struct power_supply *psy)
int i;

for (i = 0; i < ARRAY_SIZE(power_supply_static_attrs); i++)
device_remove_file(psy->dev,
&power_supply_static_attrs[i]);
device_remove_file(psy->dev, &power_supply_static_attrs[i]);

for (i = 0; i < psy->num_properties; i++)
device_remove_file(psy->dev,
Expand Down

0 comments on commit 5cb108b

Please sign in to comment.