Skip to contentSkip to conversation

drivers: remoteproc: xlnx: fix uninitialized tcm mode

PATCH New Tanmay Shah 1 participant 1 message Apr 24, 2024 Remote processor (remoteproc)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: remoteproc: xlnx: fix uninitialized tcm mode

Add "else" case for default tcm mode to silent following static check:

zynqmp_r5_cluster_init()
error: uninitialized symbol 'tcm_mode'.

Fixes a6b974b40f94 ("drivers: remoteproc: xlnx: Add Versal and Versal-NET support")
---
 drivers/remoteproc/xlnx_r5_remoteproc.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/remoteproc/xlnx_r5_remoteproc.c +2 -0
index d98940d7ef8f..84243d1dff9f 100644
@@ -1006,6 +1006,8 @@ static int zynqmp_r5_cluster_init(struct zynqmp_r5_cluster *cluster)
 			tcm_mode = PM_RPU_TCM_COMB;
 		else
 			tcm_mode = PM_RPU_TCM_SPLIT;
+	} else {
+		tcm_mode = PM_RPU_TCM_COMB;
 	}
 
 	/*

base-commit: a49a6c600193e32123e8885515051b34a5d711ff

Signature · 1 line
2.25.1