From: Andres Salomon Date: Wed, 12 Dec 2007 19:12:59 +0000 (-0500) Subject: power: fix incorrect unregistration in power_supply_create_attrs error path X-Git-Tag: v2.6.25-rc1~1071^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=839dc9f105c0d856f9a0be48fb3bd0982ff5df5b;p=pandora-kernel.git 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 Signed-off-by: David Woodhouse --- Reading git-diff-tree failed