cmd: efidebug: fix a build error in show_efi_boot_opt()
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Tue, 26 Nov 2019 01:11:22 +0000 (10:11 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 3 Dec 2019 19:54:05 +0000 (20:54 +0100)
commit0bffb8c46b109dcd8766e78c357147c07333f6b6
tree3167f9e876bf1858bac971405e6329b54f927730
parent1297989804d66c8db92efbf9fa2e6cc76965a943
cmd: efidebug: fix a build error in show_efi_boot_opt()

I detected the following error in sandbox with Clang on Travis CI:
    +cmd/efidebug.c:703:15: error: result of comparison of constant
     9223372036854775822 with expression of type 'int' is always false
     [-Werror,-Wtautological-constant-out-of-range-compare]
    +        else if (ret == EFI_NOT_FOUND)
    +                 ~~~ ^  ~~~~~~~~~~~~~

Simply changing a type of 'ret' to efi_status_t will fix this error.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/efidebug.c