mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
pxe: Tidy up the is_pxe global
Move this into the context to avoid a global variable. Also rename it since the current name does not explain what it actually affects. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Artem Lapkin <email2tema@gmail.com> Tested-by: Artem Lapkin <email2tema@gmail.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
This commit is contained in:
parent
4ad5d51edb
commit
8018b9af57
4 changed files with 15 additions and 16 deletions
|
@ -121,7 +121,7 @@ do_pxe_get(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
|||
struct pxe_context ctx;
|
||||
int err, i = 0;
|
||||
|
||||
pxe_setup_ctx(&ctx, cmdtp, do_get_tftp, NULL);
|
||||
pxe_setup_ctx(&ctx, cmdtp, do_get_tftp, NULL, false);
|
||||
|
||||
if (argc != 1)
|
||||
return CMD_RET_USAGE;
|
||||
|
@ -175,7 +175,7 @@ do_pxe_boot(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
|||
char *pxefile_addr_str;
|
||||
struct pxe_context ctx;
|
||||
|
||||
pxe_setup_ctx(&ctx, cmdtp, do_get_tftp, NULL);
|
||||
pxe_setup_ctx(&ctx, cmdtp, do_get_tftp, NULL, false);
|
||||
|
||||
if (argc == 1) {
|
||||
pxefile_addr_str = from_env("pxefile_addr_r");
|
||||
|
@ -235,8 +235,6 @@ static int do_pxe(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
|||
if (argc < 2)
|
||||
return CMD_RET_USAGE;
|
||||
|
||||
is_pxe = true;
|
||||
|
||||
/* drop initial "pxe" arg */
|
||||
argc--;
|
||||
argv++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue