]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: efidebug: fix -Werror=type-limits warning
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 9 May 2020 15:59:19 +0000 (17:59 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 9 May 2020 22:01:12 +0000 (00:01 +0200)
commitbdb15776f6d93a1fe7902346db06a2a9fd43381e
tree222b98e146dfef710631d71ec35dc5cd84232cc0
parentde699187b590dbc65b843dafc5b8cbea48d5b97a
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>
cmd/efidebug.c