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

Commit 0bede4b5 authored by Jigarkumar Zala's avatar Jigarkumar Zala
Browse files

msm: camera: util: Correct the return code



For secure mode, csiphy driver ask for secure stream. Currently
this call always return success. This change return the appropriate
result of failure/success.

CRs-Fixed: 2673418
Change-Id: Ib425ad77e6481888acefdaf843256602aa759cf3
Signed-off-by: default avatarJigarkumar Zala <jzala@codeaurora.org>
parent beb3ea37
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ int cam_csiphy_notify_secure_mode(struct csiphy_device *csiphy_dev,
		rc = -EINVAL;
	}

	return 0;
	return rc;
}

void cam_cpastop_scm_write(struct cam_cpas_hw_errata_wa *errata_wa)
@@ -169,7 +169,7 @@ int cam_csiphy_notify_secure_mode(struct csiphy_device *csiphy_dev,
		rc = -EINVAL;
	}

	return 0;
	return rc;
}

void cam_cpastop_scm_write(struct cam_cpas_hw_errata_wa *errata_wa)