Skip to content

Commit

Permalink
iommu/tegra: smmu: Fix uninitialized var warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hiroshi Doyu authored and Joerg Roedel committed Jun 25, 2012
1 parent 0547c2f commit ff76362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/iommu/tegra-smmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ff76362

Please sign in to comment.