aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorJavier Carrasco <[email protected]>2023-10-01 10:37:44 +0200
committerShuah Khan <[email protected]>2023-10-05 14:28:53 -0600
commit5b45a753776be5d21cf395ec97e81c9187fbeaca (patch)
tree66fb1e4b4910d54e9046890921e01a89c345868a /tools/perf/scripts/python/bin/stackcollapse-record
parent37013b557b7f39e603b4459ef82dc8b848f98a67 (diff)
selftests: uevent filtering: fix return on error in uevent_listener
The ret variable is used to check function return values and assigning values to it on error has no effect as it is an unused value. The current implementation uses an additional variable (fret) to return the error value, which in this case is unnecessary and lead to the above described misuse. There is no restriction in the current implementation to always return -1 on error and the actual negative error value can be returned safely without storing -1 in a specific variable. Simplify the error checking by using a single variable which always holds the returned value. Signed-off-by: Javier Carrasco <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions