[PATCH v3 23/46] net: Simplify parse_args()

Simon Glass sjg at chromium.org
Fri Dec 20 05:05:58 CET 2024


This function repeats the same code in a few places, namely setting
net_boot_file_name_explicit and copying of the filename to
net_boot_file_name

Move these two operations to the caller, with just the filename (or
NULL) returned by parse_args()

This makes things a little easier to follow.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

(no changes since v1)

 cmd/net.c | 45 ++++++++++++++++++++-------------------------
 1 file changed, 20 insertions(+), 25 deletions(-)

Applied to sjg/master, thanks!


More information about the U-Boot mailing list