summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorAnish Moorthy <amoorthy@google.com>2024-02-16 02:53:55 +0300
committerSean Christopherson <seanjc@google.com>2024-04-10 00:10:08 +0300
commitf588557ac4aceccded4741dfdb18336e39c7a208 (patch)
tree5afb5ca76655c30606e8bbc4540ef789f8fe8f66 /tools/perf/scripts/python/stackcollapse.py
parenta3bd2f7ead6d915290c4895ca52f8ee3887cd1ab (diff)
downloadlinux-f588557ac4aceccded4741dfdb18336e39c7a208.tar.xz
KVM: Simplify error handling in __gfn_to_pfn_memslot()
KVM_HVA_ERR_RO_BAD satisfies kvm_is_error_hva(), so there's no need to duplicate the "if (writable)" block. Fix this by bringing all kvm_is_error_hva() cases under one conditional. Signed-off-by: Anish Moorthy <amoorthy@google.com> Link: https://lore.kernel.org/r/20240215235405.368539-5-amoorthy@google.com [sean: use ternary operator] Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions