s390/mm: simplify get_guest_storage_key
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Mon, 9 May 2016 09:15:32 +0000 (11:15 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 10 Jun 2016 10:07:27 +0000 (12:07 +0200)
commit8d6037a7b4f21708451d4aec14828f9ebe77b37a
tree1e8a6e953c0485c6c88cc3676ba69e9256ae6244
parentd3ed1ceeace311af9973d17a07a114bfaf0ca1b1
s390/mm: simplify get_guest_storage_key

We can safe a few LOC and make that function easier to understand
by rewriting existing code.

Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/mm/pgtable.c