]> Pileus Git - ~andy/linux/commit
iommu/tegra: smmu: Remove unnecessary sanity check at alloc_pdir()
authorHiroshi DOYU <hdoyu@nvidia.com>
Mon, 2 Jul 2012 11:26:37 +0000 (14:26 +0300)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 17 Jul 2012 09:25:04 +0000 (11:25 +0200)
commit0bdbf4ccef4f87016e2fa0c0b34f7a025f364c3d
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