diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-11-25 15:21:40 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-12-02 21:59:37 +0100 |
commit | 335ce71db78b80ab43cf68fcf812fb99bac84c86 (patch) | |
tree | 78be97547e96713700377878fc427f6fb42e20b9 /lib | |
parent | a2505fc8a901180fb555291c6fd106df7efed71c (diff) | |
download | u-boot-335ce71db78b80ab43cf68fcf812fb99bac84c86.tar.gz |
efi_selftest: incorrect use of bitwise or
We should use a logical or when combining logical values.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_selftest/efi_selftest_loaded_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_selftest/efi_selftest_loaded_image.c b/lib/efi_selftest/efi_selftest_loaded_image.c index f9b54ae263..ea2b380a77 100644 --- a/lib/efi_selftest/efi_selftest_loaded_image.c +++ b/lib/efi_selftest/efi_selftest_loaded_image.c @@ -53,7 +53,7 @@ static int execute(void) efi_st_error("ProtocolsPerHandle failed\n"); return EFI_ST_FAILURE; } - if (!protocol_buffer_count | !protocol_buffer) { + if (!protocol_buffer_count || !protocol_buffer) { efi_st_error("ProtocolsPerHandle returned no protocol\n"); return EFI_ST_FAILURE; } |