iommu/tegra: smmu: remove NULL check
Sri Krishna chowdary [Mon, 29 Oct 2012 10:59:47 +0000 (15:59 +0530)]
smmu->regs cant be NULL if smmu is not NULL.

Bug 1046331

Change-Id: Ic37f0075842583ad957f196338c2b9de66fa4ee1
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/159519
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

drivers/iommu/tegra-smmu.c

index 08c1696..16374d2 100644 (file)
@@ -1336,8 +1336,7 @@ static int tegra_smmu_remove(struct platform_device *pdev)
        }
        if (smmu->avp_vector_page)
                __free_page(smmu->avp_vector_page);
-       if (smmu->regs)
-               devm_iounmap(dev, smmu->regs);
+       devm_iounmap(dev, smmu->regs);
        if (smmu->regs_ahbarb)
                devm_iounmap(dev, smmu->regs_ahbarb);
        devm_kfree(dev, smmu);