iommu/tegra: smmu: Remove unnecessary sanity check at alloc_pdir()
authorHiroshi Doyu <hdoyu@nvidia.com>
Mon, 2 Jul 2012 01:26:37 +0000 (01:26 +0000)
committerVarun Colbert <vcolbert@nvidia.com>
Sat, 4 Aug 2012 01:21:05 +0000 (18:21 -0700)
commitc5ca9d3aaea8ab0b225917159314a7a9e800e58c
tree449c2e2cbef31bf60e9700ac48a9c8ebd289958d
parent4d65f1fe74adf5a76088bd650affd52a4a48f97b
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().

[Hiroshi Doyu: Backport from the upstream.]

Change-Id: I69da0c91efae892ca2bfd202dd25c3bf09884ca9
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Reviewed-on: http://git-master/r/120009
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
drivers/iommu/tegra-smmu.c