Skip to content
Snippets Groups Projects
Commit 4d79e884 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

pxe: Return the file size from the getfile() function


It is pretty strange that the pxe code uses the 'filesize' environment
variable find the size of a file it has just read.

Partly this is because it uses the command-line interpreter to parse its
request to load the file.

As a first step towards unwinding this, return it directly from the
getfile() function. This makes the code a bit longer, for now, but will be
cleaned up in future patches.

Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarArtem Lapkin <email2tema@gmail.com>
Tested-by: default avatarArtem Lapkin <email2tema@gmail.com>
Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
parent 4a255ea3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment