iommu/io-pgtable-arm: Simplify start level lookup
authorRobin Murphy <robin.murphy@arm.com>
Fri, 25 Oct 2019 18:08:33 +0000 (19:08 +0100)
committerWill Deacon <will@kernel.org>
Mon, 4 Nov 2019 19:34:31 +0000 (19:34 +0000)
commit594ab90fc46c0842e4f1b60b6642fa4555a999f9
treecc577df49d97a9c56f4e53b3722b4c60f880e2df
parent67f3e53d2a37ab27b00610eb25724103055beafc
iommu/io-pgtable-arm: Simplify start level lookup

Beyond a couple of allocation-time calculations, data->levels is only
ever used to derive the start level. Storing the start level directly
leads to a small reduction in object code, which should help eke out a
little more efficiency, and slightly more readable source to boot.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/io-pgtable-arm.c