arm: socfpga: Remove unnecessary for loop
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Mon, 28 Jul 2025 11:25:29 +0000 (12:25 +0100)
committerTien Fong Chee <tien.fong.chee@intel.com>
Wed, 30 Jul 2025 09:45:28 +0000 (17:45 +0800)
commitf4aa24af69272824578e76d4f7da8d65d1a088d9
tree575f8ac4b0b9d911ae2ef078627f90b94a81c760
parent46d5cf3847aac8609f1cb039cdd61087d8f465e7
arm: socfpga: Remove unnecessary for loop

The for loop in fpgamgr_program_poll_cd will always terminate after a
single pass and so is not necessary. Remove it and all related code and
leave only the code that is effective.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/fpga/socfpga_gen5.c