mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00:00
cmd: fdt: Narrow the check for fdt addr
The current code only checks if the fdt subcommand is fdt addr by checking whether it starts with 'a'. Since this is a pretty widely used letter, narrow down that check a bit. Acked-by: Simon Glass <sjg@chromium.org> Acked-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
This commit is contained in:
parent
793fd86f72
commit
f0ed68e21f
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ static int do_fdt(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
/*
|
||||
* Set the address of the fdt
|
||||
*/
|
||||
if (argv[1][0] == 'a') {
|
||||
if (strncmp(argv[1], "ad", 2) == 0) {
|
||||
unsigned long addr;
|
||||
int control = 0;
|
||||
struct fdt_header *blob;
|
||||
|
|
Loading…
Add table
Reference in a new issue