]> git.baikalelectronics.ru Git - uboot.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)
commitb133680514607ef84565709657e2312ca578752f
tree222b98e146dfef710631d71ec35dc5cd84232cc0
parenta2869799caa27e84c84e6468d70491924ebea61b
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: 5c9145d3f2f9 ("cmd: add efidebug command")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/efidebug.c