Skip to content
Snippets Groups Projects
Commit 31839dc2 authored by Patrice Chotard's avatar Patrice Chotard Committed by Tom Rini
Browse files

cmd: pxe: Fix checkpatch WARNING/CHECK


Fix checkpatch WARNING and CHECK issues

Signed-off-by: default avatarPatrice Chotard <patrice.chotard@st.com>
parent 51843eab
No related branches found
No related tags found
No related merge requests found
...@@ -128,7 +128,7 @@ do_pxe_get(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ...@@ -128,7 +128,7 @@ do_pxe_get(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return 1; return 1;
err = strict_strtoul(pxefile_addr_str, 16, err = strict_strtoul(pxefile_addr_str, 16,
(unsigned long *)&pxefile_addr_r); (unsigned long *)&pxefile_addr_r);
if (err < 0) if (err < 0)
return 1; return 1;
...@@ -190,7 +190,7 @@ do_pxe_boot(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ...@@ -190,7 +190,7 @@ do_pxe_boot(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
cfg = parse_pxefile(cmdtp, pxefile_addr_r); cfg = parse_pxefile(cmdtp, pxefile_addr_r);
if (cfg == NULL) { if (!cfg) {
printf("Error parsing config file\n"); printf("Error parsing config file\n");
return 1; return 1;
} }
...@@ -230,10 +230,9 @@ static int do_pxe(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ...@@ -230,10 +230,9 @@ static int do_pxe(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return CMD_RET_USAGE; return CMD_RET_USAGE;
} }
U_BOOT_CMD( U_BOOT_CMD(pxe, 3, 1, do_pxe,
pxe, 3, 1, do_pxe, "commands to get and boot from pxe files",
"commands to get and boot from pxe files", "get - try to retrieve a pxe file using tftp\n"
"get - try to retrieve a pxe file using tftp\npxe " "pxe boot [pxefile_addr_r] - boot from the pxe file at pxefile_addr_r\n"
"boot [pxefile_addr_r] - boot from the pxe file at pxefile_addr_r\n"
); );
#endif #endif
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