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

Commit 5b98ef68 authored by Jeyaprakash Soundrapandian's avatar Jeyaprakash Soundrapandian Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: smmu: Move the error message at correct place" into dev/msm-4.14-camx

parents c2a08c51 9390333a
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;
			}