summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorAxel Rasmussen <axelrasmussen@google.com>2021-05-19 23:03:31 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2021-05-27 14:45:55 +0300
commit25408e5a0246048e3e36d2cd513565ebcc481f51 (patch)
treef6a0d6f20e94b548b4f5c38316f0dedf231e3b49 /tools/perf/scripts/python
parent2aab4b355cbbe1deacfd9349729c43509042b557 (diff)
downloadlinux-25408e5a0246048e3e36d2cd513565ebcc481f51.tar.xz
KVM: selftests: simplify setup_demand_paging error handling
A small cleanup. Our caller writes: r = setup_demand_paging(...); if (r < 0) exit(-r); Since we're just going to exit anyway, instead of returning an error we can just re-use TEST_ASSERT. This makes the caller simpler, as well as the function itself - no need to write our branches, etc. Signed-off-by: Axel Rasmussen <axelrasmussen@google.com> Message-Id: <20210519200339.829146-3-axelrasmussen@google.com> Reviewed-by: Ben Gardon <bgardon@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions