Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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")
Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20240424163344.1344304-1-tanmay.shah@amd.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>

authored by

Tanmay Shah and committed by
Mathieu Poirier
b9511056 084c2296

+2
+2
drivers/remoteproc/xlnx_r5_remoteproc.c
··· 1006 1006 tcm_mode = PM_RPU_TCM_COMB; 1007 1007 else 1008 1008 tcm_mode = PM_RPU_TCM_SPLIT; 1009 + } else { 1010 + tcm_mode = PM_RPU_TCM_COMB; 1009 1011 } 1010 1012 1011 1013 /*