[PATCH 1/1] iommu/tegra: smmu: Fix uninitialized var warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For the compiler warning, uninitialized var when getting value by a
pointer.

Signed-off-by: Hiroshi DOYU <hdoyu@xxxxxxxxxx>
---
Depends:
	[v2 1/2] iommu/tegra: smmu: Simplify allocation at once
	http://marc.info/?l=linux-tegra&m=133706973614667&w=2
---
 drivers/iommu/tegra-smmu.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c
index 9c2a99e..192fc4a 100644
--- a/drivers/iommu/tegra-smmu.c
+++ b/drivers/iommu/tegra-smmu.c
@@ -903,8 +903,8 @@ static int tegra_smmu_probe(struct platform_device *pdev)
 	struct device *dev = &pdev->dev;
 	int i, err = 0;
 	u32 asids;
-	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;
-- 
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux