diff options
author | 2012-01-14 12:40:44 +0000 | |
---|---|---|
committer | 2012-02-27 09:27:57 -0800 | |
commit | 683b159a2eef6544d49020eb9c88a94157df7d2d (patch) | |
tree | 75c7ba070482711796f70af035e873dd6af7dc25 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | IB/srp: Use pr_fmt() and pr_err()/pr_warn() (diff) | |
download | linux-dev-683b159a2eef6544d49020eb9c88a94157df7d2d.tar.xz linux-dev-683b159a2eef6544d49020eb9c88a94157df7d2d.zip |
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 <bvanassche@acm.org>
Acked-by: David Dillow <dillowda@ornl.gov>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions