diff options
author | Liam Howlett <liam.howlett@oracle.com> | 2021-06-28 19:39:05 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-06-29 10:53:51 -0700 |
commit | 900c83f88af06bf0466c28bdde8a2c011b855e44 (patch) | |
tree | ae927bbf43d080c52afbda795be389d05dc34d5b /crypto | |
parent | 27a14d287e16c308040508be9f0cb28bc935bd0e (diff) | |
download | lwn-900c83f88af06bf0466c28bdde8a2c011b855e44.tar.gz lwn-900c83f88af06bf0466c28bdde8a2c011b855e44.zip |
arch/powerpc/kvm/book3s: use vma_lookup() in kvmppc_hv_setup_htab_rma()
Using vma_lookup() removes the requirement to check if the address is
within the returned vma. The code is easier to understand and more
compact.
Link: https://lkml.kernel.org/r/20210521174745.2219620-7-Liam.Howlett@Oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Reviewed-by: Laurent Dufour <ldufour@linux.ibm.com>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Davidlohr Bueso <dbueso@suse.de>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions