summaryrefslogtreecommitdiff
path: root/rust/helpers
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@oss.qualcomm.com>2025-11-26 12:17:59 -0600
committerMathieu Poirier <mathieu.poirier@linaro.org>2025-11-27 08:35:19 -0700
commitac82dbc539c4c167f351e2e91c93508de73a5cd1 (patch)
tree502d057db9b70d9a3643ae062a3bb04a6a0a70a8 /rust/helpers
parent950c74fd6cd80ae6773aa3bf4cb4321b83f194d2 (diff)
remoteproc: st: Fix indexing of memory-regions
The recent transition to use of_reserved_mem_region_to_resource() changes the while loop to a for loop, but the increment of the "index" variable was left behind at the end of the loop, as highlighted by the following error/warning: error: variable 'index' is incremented both in the loop header and in the loop body [-Werror,-Wfor-loop-analysis] Drop the extra increment to avoid skipping over every other memory-region in the loop. Fixes: 67a7bc7f0358 ("remoteproc: Use of_reserved_mem_region_* functions for "memory-region"") Signed-off-by: Bjorn Andersson <bjorn.andersson@oss.qualcomm.com> Link: https://lore.kernel.org/r/20251126-st-remoteproc-double-index-v1-1-3b0a8b21ac18@oss.qualcomm.com Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions