net: Simplify parse_args()
authorSimon Glass <sjg@chromium.org>
Thu, 6 Mar 2025 00:25:17 +0000 (17:25 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 18 Mar 2025 19:12:15 +0000 (13:12 -0600)
commitf1ece5d86e5577ae9bb3325d65ed7003f3cbaf9e
tree460a91664de60f8e059101199c38f07615d79a71
parent3ccbc10cd9e3b28d67fe5008943a648b870db1e6
net: Simplify parse_args()

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@chromium.org>
cmd/net.c