diff options
author | Oded Gabbay <oded.gabbay@gmail.com> | 2019-02-22 21:29:58 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-23 10:18:13 +0100 |
commit | a507fbb975c448bf3c15bba31fe8dd870f164da6 (patch) | |
tree | b19ed60c28e8fbe0eb69e1ed20640fd30898efde /tools/perf/scripts/python/sched-migration.py | |
parent | 919691733197398d13b2e335e45d9760e7511125 (diff) |
habanalabs: don't print result when rc indicates error
send_cpu_message() doesn't update the result parameter when an error
occurs in its code. Therefore, callers of send_cpu_message() shouldn't use
the result value when the return code indicates error.
This patch fixes a static checker warning in goya_test_cpu_queue(), where
that function did print the result even though the return code from
send_cpu_message() indicated error.
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions