phy: samsung-ufs: ufs: exit on first reported error
authorPeter Griffin <peter.griffin@linaro.org>
Fri, 26 Apr 2024 10:41:29 +0000 (11:41 +0100)
committerVinod Koul <vkoul@kernel.org>
Sat, 4 May 2024 11:54:28 +0000 (17:24 +0530)
commit2ff6365e2271282bea155541e5e3deb9d9ff1572
treedd279bf4d4ea765c78f0c7326eb883129f2e1bbb
parent8b19c45ae4c0480ea07ab9f33c43d0fa6ea43aa1
phy: samsung-ufs: ufs: exit on first reported error

To preserve the err value, exit the loop immediately if an error
is returned.

Fixes: f2c6d0fa197a ("phy: samsung-ufs: use exynos_get_pmu_regmap_by_phandle() to obtain PMU regmap")
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Link: https://lore.kernel.org/r/20240426104129.2211949-3-peter.griffin@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/samsung/phy-samsung-ufs.c