Skip to content

Commit 084c229

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/remoteproc/xlnx_r5_remoteproc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ static int zynqmp_r5_core_init(struct zynqmp_r5_cluster *cluster,
904904
{
905905
struct device *dev = cluster->dev;
906906
struct zynqmp_r5_core *r5_core;
907-
int ret, i;
907+
int ret = -EINVAL, i;
908908

909909
r5_core = cluster->r5_cores[0];
910910

0 commit comments

Comments
 (0)