summaryrefslogtreecommitdiff
path: root/drivers/iommu/tegra-smmu.c
diff options
context:
space:
mode:
authorHiroshi Doyu <hdoyu@nvidia.com>2012-06-25 14:23:58 +0300
committerJoerg Roedel <joerg.roedel@amd.com>2012-06-25 13:50:44 +0200
commitff7636292aac6cae2ee3a553d5424ea49c8a8263 (patch)
treea80aa9599a12bd658f456e5c769c68bbf74de3aa /drivers/iommu/tegra-smmu.c
parent0547c2f56e6e4795d5366ba3b8483b668920a947 (diff)
iommu/tegra: smmu: Fix uninitialized var warning
For the compiler warning, uninitizlized var when getting value by a pointer. Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu/tegra-smmu.c')
-rw-r--r--drivers/iommu/tegra-smmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c
index cc6aba45e49a..becfc614cf94 100644
--- a/drivers/iommu/tegra-smmu.c
+++ b/drivers/iommu/tegra-smmu.c
@@ -902,8 +902,8 @@ static int tegra_smmu_probe(struct platform_device *pdev)
struct smmu_device *smmu;
struct device *dev = &pdev->dev;
int i, asids, err = 0;
- dma_addr_t base;
- size_t bytes, size;
+ dma_addr_t uninitialized_var(base);
+ size_t bytes, uninitialized_var(size);
if (smmu_handle)
return -EIO;