Skip to content

Commit

Permalink
iommu/tegra: smmu: Remove unnecessary sanity check at alloc_pdir()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Stephen Warren <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
  • Loading branch information
hdoyu authored and Joerg Roedel committed Jul 17, 2012
1 parent ff76362 commit 0bdbf4c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/iommu/tegra-smmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -562,9 +562,6 @@ static int alloc_pdir(struct smmu_as *as)
u32 val;
struct smmu_device *smmu = as->smmu;

if (as->pdir_page)
return 0;

as->pte_count = devm_kzalloc(smmu->dev,
sizeof(as->pte_count[0]) * SMMU_PDIR_COUNT, GFP_KERNEL);
if (!as->pte_count) {
Expand Down

0 comments on commit 0bdbf4c

Please sign in to comment.