From: Peng Fan Date: Thu, 16 Oct 2025 11:47:58 +0000 (+0800) Subject: remoteproc: core: Drop redundant initialization of 'ret' in rproc_shutdown() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4531b6bad5af669511c348ad5225d9f697af221b;p=thirdparty%2Fkernel%2Flinux.git 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 Acked-by: Andrew Davis Link: https://lore.kernel.org/r/20251016-rproc-cleanup-v3-v3-1-774083716e8a@nxp.com Signed-off-by: Mathieu Poirier --- diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index 8256721005289..29bbaa349e340 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c @@ -1989,7 +1989,7 @@ EXPORT_SYMBOL(rproc_boot); int rproc_shutdown(struct rproc *rproc) { struct device *dev = &rproc->dev; - int ret = 0; + int ret; ret = mutex_lock_interruptible(&rproc->lock); if (ret) {