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

Commit 2022b314 authored by Raja Mallik's avatar Raja Mallik Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera_v3: smmu: Move the error message at correct place



Currently we are seeing error log which is not actual error in
case of cam-secure usecase. This change moves the error log at
correct place to reflect the actual error.

Change-Id: I7cc81966def89133c6f9261f403b4609dcfea70e
Signed-off-by: default avatarJigarkumar Zala <jzala@codeaurora.org>
Signed-off-by: default avatarRaja Mallik <rmallik@codeaurora.org>
parent 8b88b23d
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -682,10 +682,6 @@ static int cam_smmu_create_add_handle_in_table(char *name,
		if (!strcmp(iommu_cb_set.cb_info[i].name, name)) {
			mutex_lock(&iommu_cb_set.cb_info[i].lock);
			if (iommu_cb_set.cb_info[i].handle != HANDLE_INIT) {
				CAM_ERR(CAM_SMMU,
					"Error: %s already got handle 0x%x",
					name,
					iommu_cb_set.cb_info[i].handle);

				if (iommu_cb_set.cb_info[i].is_secure)
					iommu_cb_set.cb_info[i].secure_count++;
@@ -695,6 +691,11 @@ static int cam_smmu_create_add_handle_in_table(char *name,
					*hdl = iommu_cb_set.cb_info[i].handle;
					return 0;
				}

				CAM_ERR(CAM_SMMU,
					"Error: %s already got handle 0x%x",
					name, iommu_cb_set.cb_info[i].handle);

				return -EINVAL;
			}