]> git.baikalelectronics.ru Git - kernel.git/commit
soc: qcom: smp2p: Use common error handling code in qcom_smp2p_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 2 Nov 2017 18:27:33 +0000 (19:27 +0100)
committerAndy Gross <andy.gross@linaro.org>
Mon, 1 Jan 2018 06:29:09 +0000 (00:29 -0600)
commit6ba4b3606fb9f36a743084c77bc18d8183869e85
treeb8f8b0ede6c7c27084d739cf59699a3f927a205e
parentae598574c2343a796d1d3392c988924f0c90b18b
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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/smp2p.c