Skip to content
Commit c01fc227 authored by Markus Elfring's avatar Markus Elfring Committed by Andy Gross
Browse files

soc: qcom: smp2p: Use common error handling code in qcom_smp2p_probe()



* Add a jump target so that a specific error message is stored only once
  at the end of this function implementation.

* Replace two calls of the function "dev_err" by goto statements.

* Adjust two condition checks.

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarAndy Gross <andy.gross@linaro.org>
parent 3830d077
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment