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:
Anirudh Ghayal <aghayal@codeaurora.org>
Loading
Please register or sign in to comment