Commit b9511056 authored by Tanmay Shah's avatar Tanmay Shah Committed by Mathieu Poirier

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: a6b974b4 ("drivers: remoteproc: xlnx: Add Versal and Versal-NET support")
Signed-off-by: default avatarTanmay Shah <tanmay.shah@amd.com>
Reported-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20240424163344.1344304-1-tanmay.shah@amd.comSigned-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
parent 084c2296
...@@ -1006,6 +1006,8 @@ static int zynqmp_r5_cluster_init(struct zynqmp_r5_cluster *cluster) ...@@ -1006,6 +1006,8 @@ static int zynqmp_r5_cluster_init(struct zynqmp_r5_cluster *cluster)
tcm_mode = PM_RPU_TCM_COMB; tcm_mode = PM_RPU_TCM_COMB;
else else
tcm_mode = PM_RPU_TCM_SPLIT; tcm_mode = PM_RPU_TCM_SPLIT;
} else {
tcm_mode = PM_RPU_TCM_COMB;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment