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

Commit 9390333a authored by Jigarkumar Zala's avatar Jigarkumar Zala
Browse files

msm: camera: 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>
parent f6c87755
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -681,11 +681,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++;

@@ -694,6 +689,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;
			}