]> git.dujemihanovic.xyz Git - u-boot.git/commit
initcall: Adjust the loop logic
authorSimon Glass <sjg@chromium.org>
Tue, 22 Aug 2023 03:16:51 +0000 (21:16 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 31 Aug 2023 17:16:54 +0000 (13:16 -0400)
commit468e372e9ad4c551d513b2e73c1f5c1cbb2e4097
tree0289b3ca2c7773b9b33c0f33c9553f80aa2eac86
parent7d2e23394ffbbc1d5b5f2479e0c52db52907cc40
initcall: Adjust the loop logic

Use a variable to hold the function, so we don't need to repeat the
pointer access each time. Rename the init pointer to 'ptr' since we only
refer to it in the for() statement now.

Signed-off-by: Simon Glass <sjg@chromium.org>
lib/initcall.c