From: Bart Van Assche Date: Sat, 14 Jan 2012 12:40:44 +0000 (+0000) Subject: IB/srp: Consolidate repetitive sysfs code X-Git-Tag: v3.4-rc1~169^2^10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=683b159a2eef6544d49020eb9c88a94157df7d2d;p=pandora-kernel.git IB/srp: Consolidate repetitive sysfs code Remove sysfs attributes before removing a target instead of testing the target state in every sysfs attribute callback method. Note: it is safe to invoke a sysfs attribute removal method like device_remove_file() twice on the same attribute. Signed-off-by: Bart Van Assche Acked-by: David Dillow Signed-off-by: Roland Dreier --- Reading git-diff-tree failed