iommu/vt-d: Calculate translation in domain_context_mapping_one
authorJoerg Roedel <jroedel@suse.de>
Tue, 21 Jul 2015 12:45:31 +0000 (14:45 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 12 Aug 2015 14:23:33 +0000 (16:23 +0200)
commit28ccce0d954a1cf3baba335bf12581357112fb35
tree8ac01d470f6e64e1b39b5856d84a6234161b13ae
parente2411427f7d3ddcf8d5f35d5ab0a397180deac3a
iommu/vt-d: Calculate translation in domain_context_mapping_one

There is no reason to pass the translation type through
multiple layers. It can also be determined in the
domain_context_mapping_one function directly.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c