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

Commit e6ff5614 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: smmu: Move the error message at correct place"

parents 865a651c 17428dd7
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -673,11 +673,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++;

@@ -686,6 +681,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;
			}