]> git.dujemihanovic.xyz Git - u-boot.git/commit
lib: move phdr increment to for loop heading
authorMaxim Moskalets <maximmosk4@gmail.com>
Sat, 17 Aug 2024 11:02:22 +0000 (14:02 +0300)
committerTom Rini <trini@konsulko.com>
Wed, 28 Aug 2024 00:01:21 +0000 (18:01 -0600)
commitd8503a45dfe48cdf764e143d9de851924b214f67
tree34905b890b9a80393e8eaf59420423618b2e356c
parent314fdd2e7392bc3480104a1f15001f0f6f25a4dd
lib: move phdr increment to for loop heading

Shifting this pointer in the loop will be more logical when working
with the code later, because you can see at a glance what exactly
changes at each iteration. Moreover, the code remains equivalent
because this variable is not used after the loop.

Signed-off-by: Maxim Moskalets <maximmosk4@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/elf.c