]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
remoteproc: imx_dsp_rproc: Simplify start/stop error handling
authorPeng Fan <peng.fan@nxp.com>
Wed, 19 Nov 2025 04:21:57 +0000 (12:21 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 19 Nov 2025 16:16:55 +0000 (09:16 -0700)
commit6f880e7bd103c38d583326f176db8aae8c8b71c2
tree7a275f2c376f0f083f5d8bba62b037510013b2f8
parent5c33a631a5780df70e2b392539a98e4a624cd752
remoteproc: imx_dsp_rproc: Simplify start/stop error handling

Replace goto-based error handling with early return pattern in
imx_dsp_rproc_{start,stop}() functions, and simplify if-else logic.

No functional changes, only code structure improvements for better
maintainability.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20251119-imx-dsp-2025-11-19-v4-12-adafd342d07b@nxp.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/imx_dsp_rproc.c