Skip to content

Commit b951105

Browse files
tnmyshmathieupoirier
authored andcommitted
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: a6b974b ("drivers: remoteproc: xlnx: Add Versal and Versal-NET support") Signed-off-by: Tanmay Shah <[email protected]> Reported-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mathieu Poirier <[email protected]>
1 parent 084c229 commit b951105

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/remoteproc/xlnx_r5_remoteproc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,8 @@ static int zynqmp_r5_cluster_init(struct zynqmp_r5_cluster *cluster)
10061006
tcm_mode = PM_RPU_TCM_COMB;
10071007
else
10081008
tcm_mode = PM_RPU_TCM_SPLIT;
1009+
} else {
1010+
tcm_mode = PM_RPU_TCM_COMB;
10091011
}
10101012

10111013
/*

0 commit comments

Comments
 (0)