iommu/tegra: smmu: Remove unnecessary sanity check at alloc_pdir()
commit0bdbf4ccef4f87016e2fa0c0b34f7a025f364c3d
authorHiroshi DOYU <hdoyu@nvidia.com>
Mon, 2 Jul 2012 11:26:37 +0000 (2 14:26 +0300)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 17 Jul 2012 09:25:04 +0000 (17 11:25 +0200)
tree72ea55136f83fdfc6dafceb4ee7f9e32bde5259a
parentff7636292aac6cae2ee3a553d5424ea49c8a8263
iommu/tegra: smmu: Remove unnecessary sanity check at alloc_pdir()

alloc_pdir() is called with smmu->as[?].pdir_page == NULL. No need to
check pdir_page again inside alloc_pdir().

Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/tegra-smmu.c