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 variable use

Fix following warning for clang compiler with W=1 option:
initialize the variable 'ret' to silence this warning
907 | int ret, i;
| ^
| = 0

Fixes: a6b974b40f94 ("drivers: remoteproc: xlnx: Add Versal and Versal-NET support")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202404231839.oHiY9Lw8-lkp@intel.com/
Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
Link: https://lore.kernel.org/r/20240423170210.1035957-1-tanmay.shah@amd.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>

authored by

Tanmay Shah and committed by
Mathieu Poirier
084c2296 a6b974b4

+1 -1
+1 -1
drivers/remoteproc/xlnx_r5_remoteproc.c
··· 904 904 { 905 905 struct device *dev = cluster->dev; 906 906 struct zynqmp_r5_core *r5_core; 907 - int ret, i; 907 + int ret = -EINVAL, i; 908 908 909 909 r5_core = cluster->r5_cores[0]; 910 910