KVM: s390: gaccess: Refactor gpa and length calculation
authorJanis Schoetterl-Glausch <scgl@linux.ibm.com>
Fri, 26 Nov 2021 16:45:47 +0000 (17:45 +0100)
committerJanosch Frank <frankja@linux.ibm.com>
Fri, 17 Dec 2021 13:23:25 +0000 (14:23 +0100)
commit416e7f0c9d613bf84e182eba9547ae8f9f5bfa4c
tree4c01049f2c34a725956e6155c3cbb8051bce0739
parent49ae248b61aefa0eff84dca8e81bd9306cdaa6c9
KVM: s390: gaccess: Refactor gpa and length calculation

Improve readability by renaming the length variable and
not calculating the offset manually.

Signed-off-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-Id: <20211126164549.7046-2-scgl@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
arch/s390/kvm/gaccess.c