net: Return the size from parse_args()
authorSimon Glass <sjg@chromium.org>
Thu, 6 Mar 2025 00:25:20 +0000 (17:25 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 18 Mar 2025 19:12:15 +0000 (13:12 -0600)
commit25d51d3c798f6e256daa628bb2a9fcc36fde0382
tree85baf83dec898b083b397263bacc2a278916ae8e
parentf60421204816bd0aa40e9e43c18d4bc5861d3521
net: Return the size from parse_args()

Rather than setting global variables, return the size, if provided. For
tftput, use the addr argument to store the save address, to avoid adding
yet another parameter.

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