]> git.dujemihanovic.xyz Git - u-boot.git/commit
pxe: Refactor to reduce the size of label_boot()
authorSimon Glass <sjg@chromium.org>
Fri, 15 Dec 2023 04:19:09 +0000 (21:19 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 10 Apr 2024 23:04:25 +0000 (17:04 -0600)
commit39ee4a14a940bc5ffa2168dd729eb7018dbe19cd
tree4fd1855faff72d8347a30ac927f6ffbd3ef279d4
parent92ee1f5e1060ab059c3f0e47f8ff369981026739
pxe: Refactor to reduce the size of label_boot()

This function is far too long and complicated. Split out the part
which actually calls the boot commands into a separate function.

Change a strncpy() to strlcpy() to keep checkpatch happy.

No functional change is intended.

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