Andres Salomon 839dc9f105 power: fix incorrect unregistration in power_supply_create_attrs error path
In power_supply_create_attrs(), we create static attributes as referenced
by power_supply_static_attrs[i].  After that, if we fail, we unregister
via power_supply_static_attrs[psy->properties[i]].  This is incorrect, as
psy->properties has absolutely no bearing on static attribs.  This patch
fixes it to unregister the correct attrib.

Another line which was unnecessarily line wrapped is also unwrapped.

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2008-02-02 02:42:59 +03:00
..
2008-01-31 11:25:51 +11:00
2008-01-28 13:21:30 +00:00
2008-01-30 13:14:02 -06:00
2008-01-31 17:29:48 +01:00
2008-01-31 11:25:51 +11:00
2008-01-31 17:29:48 +01:00
2008-01-31 11:25:51 +11:00
2008-02-01 23:09:33 +01:00
2008-01-31 11:25:51 +11:00
2008-01-31 17:29:48 +01:00
2008-01-30 13:34:07 +01:00