aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2020-07-16 13:54:40 +0900
committerSong Liu <[email protected]>2020-07-15 22:46:07 -0700
commit5e3b8a8d59b2064f68ab349182f5dc5f5bb4fd30 (patch)
treef048c8bdfcba8d8219307879bdf6d25e8b985b30 /tools/perf/scripts/python/bin/stackcollapse-record
parent659bf827ba8f1183b714341d8a1d4b1e446178d9 (diff)
md: Fix compilation warning
Remove the if statement around the calls to sysfs_link_rdev() to avoid the compilation warnings: warning: suggest braces around empty body in an ‘if’ statement when compiling with W=1. For the call to sysfs_create_link() generating the same warning, use the err variable to store the function result, avoiding triggering another warning as the function is declared as 'warn_unused_result'. Signed-off-by: Damien Le Moal <[email protected]> Signed-off-by: Song Liu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions