drivers: remoteproc: xlnx: Fix uninitialized variable use
authorTanmay Shah <tanmay.shah@amd.com>
Tue, 23 Apr 2024 17:02:11 +0000 (10:02 -0700)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 23 Apr 2024 19:29:04 +0000 (13:29 -0600)
commit084c22964c08752b03cb9d3957265c66e1baf1dc
tree2479a11f13c8806781050a5232b25c4983715a93
parenta6b974b40f942b3e51124de588383009f6a42d2d
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>
drivers/remoteproc/xlnx_r5_remoteproc.c