Commit 335ce71db78b80ab43cf68fcf812fb99bac84c86
Committed by
Alexander Graf
1 parent
a2505fc8a9
Exists in
smarc_8mq_lf_v2020.04
and in
11 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
lib/efi_selftest/efi_selftest_loaded_image.c
... | ... | @@ -53,7 +53,7 @@ |
53 | 53 | efi_st_error("ProtocolsPerHandle failed\n"); |
54 | 54 | return EFI_ST_FAILURE; |
55 | 55 | } |
56 | - if (!protocol_buffer_count | !protocol_buffer) { | |
56 | + if (!protocol_buffer_count || !protocol_buffer) { | |
57 | 57 | efi_st_error("ProtocolsPerHandle returned no protocol\n"); |
58 | 58 | return EFI_ST_FAILURE; |
59 | 59 | } |