diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-05-09 17:59:19 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-05-10 00:01:12 +0200 |
commit | bdb15776f6d93a1fe7902346db06a2a9fd43381e (patch) | |
tree | 222b98e146dfef710631d71ec35dc5cd84232cc0 /cmd | |
parent | de699187b590dbc65b843dafc5b8cbea48d5b97a (diff) | |
download | u-boot-bdb15776f6d93a1fe7902346db06a2a9fd43381e.tar.gz |
cmd: efidebug: fix -Werror=type-limits warning
Compiling with -Wtype-limits yields:
cmd/efidebug.c:968:32: error: comparison is always false due to limited
range of data type [-Werror=type-limits]
968 | if (*endp != '\0' || bootnext > 0xffff) {
|
Remove the superfluous check.
Fixes: 59df7e7e77e7 ("cmd: add efidebug command")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/efidebug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/efidebug.c b/cmd/efidebug.c index 668e5c4e87..5cc0a41af3 100644 --- a/cmd/efidebug.c +++ b/cmd/efidebug.c @@ -970,7 +970,7 @@ static int do_efi_boot_next(cmd_tbl_t *cmdtp, int flag, return CMD_RET_USAGE; bootnext = (u16)simple_strtoul(argv[1], &endp, 16); - if (*endp != '\0' || bootnext > 0xffff) { + if (*endp) { printf("invalid value: %s\n", argv[1]); r = CMD_RET_FAILURE; goto out; |