]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
remoteproc: core: Drop redundant initialization of 'ret' in rproc_shutdown()
authorPeng Fan <peng.fan@nxp.com>
Thu, 16 Oct 2025 11:47:58 +0000 (19:47 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 27 Oct 2025 15:25:49 +0000 (09:25 -0600)
commit4531b6bad5af669511c348ad5225d9f697af221b
tree26d33eb50bbad64ae53934eafd214389b8cc6f12
parent5a4d08351b466a53d5144ba909a0fbb5cc5f2100
remoteproc: core: Drop redundant initialization of 'ret' in rproc_shutdown()

The variable ret is immediately assigned the return value of
mutex_lock_interruptible(), making its prior initialization to zero
unnecessary. Remove the redundant assignment

No functional changes.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20251016-rproc-cleanup-v3-v3-1-774083716e8a@nxp.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/remoteproc_core.c