aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorAnish Moorthy <[email protected]>2024-02-15 23:53:55 +0000
committerSean Christopherson <[email protected]>2024-04-09 21:10:08 +0000
commitf588557ac4aceccded4741dfdb18336e39c7a208 (patch)
tree5afb5ca76655c30606e8bbc4540ef789f8fe8f66 /arch/powerpc/lib/code-patching.c
parentKVM: Add function comments for __kvm_read/write_guest_page() (diff)
downloadkernel-f588557ac4aceccded4741dfdb18336e39c7a208.tar.gz
kernel-f588557ac4aceccded4741dfdb18336e39c7a208.zip
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] [sean: use ternary operator] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions