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

Commit 1dd5d61f authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

soc: qcom: qpnp-pbs: Fix the retry variable check logic



In case of a failure the 'retries' variable becomes
negative thus bypassing the failure check. Fix this.

While at it, also fix the return from the error path.

Change-Id: I40ad767f4faf68b1b83c8b2cd1675af83318d96b
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent 7e9bcbf5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment