IB/srp: Consolidate repetitive sysfs code
authorBart Van Assche <bvanassche@acm.org>
Sat, 14 Jan 2012 12:40:44 +0000 (12:40 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 27 Feb 2012 17:27:57 +0000 (09:27 -0800)
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 <bvanassche@acm.org>
Acked-by: David Dillow <dillowda@ornl.gov>
Signed-off-by: Roland Dreier <roland@purestorage.com>

No differences found