Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4387ddaf authored by Prakash Gupta's avatar Prakash Gupta Committed by Liam Mark
Browse files

iommu: arm-smmu: fix KW issues



variable 'err' can be used uninitialized in fast_smmu_errata_init().
Initialize the same.

Change-Id: I7dfe3e41db05e0faf4db9f2a0c4a2ac9a299b2bb
Signed-off-by: default avatarPrakash Gupta <guptap@codeaurora.org>
parent 4a28b644
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -927,7 +927,7 @@ static int fast_smmu_errata_init(struct dma_iommu_mapping *mapping)
int fast_smmu_init_mapping(struct device *dev,
			    struct dma_iommu_mapping *mapping)
{
	int err;
	int err = 0;
	struct iommu_domain *domain = mapping->domain;
	struct iommu_pgtbl_info info;
	u64 size = (u64)mapping->bits << PAGE_SHIFT;