diff options
author | Patrice Chotard <patrice.chotard@st.com> | 2019-11-25 09:07:41 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-05 23:05:22 -0500 |
commit | 86bdd29354598e6083f458e6f2823cac9502ee92 (patch) | |
tree | 91f875464c2b78fb144d3f5acb9e5485792e0143 | |
parent | 16fbe5b54d770f20d11349f70ff466008ecfd689 (diff) | |
download | u-boot-WIP/2019-12-05-master-imports.tar.gz |
cmd: pxe: Fix checkpatch WARNING/CHECKWIP/2019-12-05-master-imports
Fix checkpatch WARNING and CHECK issues
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
-rw-r--r-- | cmd/pxe.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -67,7 +67,7 @@ do_pxe_get(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) return 1; err = strict_strtoul(pxefile_addr_str, 16, - (unsigned long *)&pxefile_addr_r); + (unsigned long *)&pxefile_addr_r); if (err < 0) return 1; @@ -129,7 +129,7 @@ do_pxe_boot(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) cfg = parse_pxefile(cmdtp, pxefile_addr_r); - if (cfg == NULL) { + if (!cfg) { printf("Error parsing config file\n"); return 1; } @@ -169,10 +169,9 @@ static int do_pxe(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) return CMD_RET_USAGE; } -U_BOOT_CMD( - pxe, 3, 1, do_pxe, - "commands to get and boot from pxe files", - "get - try to retrieve a pxe file using tftp\npxe " - "boot [pxefile_addr_r] - boot from the pxe file at pxefile_addr_r\n" +U_BOOT_CMD(pxe, 3, 1, do_pxe, + "commands to get and boot from pxe files", + "get - try to retrieve a pxe file using tftp\n" + "pxe boot [pxefile_addr_r] - boot from the pxe file at pxefile_addr_r\n" ); #endif |