diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-05-06 02:01:34 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-05-07 18:23:16 +0200 |
commit | 9900e4623a9a826447b0467cabc29e09fdf29fb6 (patch) | |
tree | e539678a420d8cb96976aab20f7a319937dddda7 /cmd/nvedit_efi.c | |
parent | 306bf6e7ff9b267e4c38f8f38900cb93fa96b62b (diff) | |
download | u-boot-9900e4623a9a826447b0467cabc29e09fdf29fb6.zip u-boot-9900e4623a9a826447b0467cabc29e09fdf29fb6.tar.gz u-boot-9900e4623a9a826447b0467cabc29e09fdf29fb6.tar.bz2 |
efi_loader: use logical and in do_env_print_efi()
If we want to check if two booleans are true, we should use a logical
conjunction (&&) and not a bitwise and-operator (&).
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'cmd/nvedit_efi.c')
-rw-r--r-- | cmd/nvedit_efi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/nvedit_efi.c b/cmd/nvedit_efi.c index 837e39e..6f69a84 100644 --- a/cmd/nvedit_efi.c +++ b/cmd/nvedit_efi.c @@ -298,7 +298,7 @@ int do_env_print_efi(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) return CMD_RET_USAGE; /* -a already specified */ - if (!default_guid & guid_any) + if (!default_guid && guid_any) return CMD_RET_USAGE; argc--; |