efi_selftest: incorrect use of bitwise or
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 25 Nov 2018 14:21:40 +0000 (15:21 +0100)
committerAlexander Graf <agraf@suse.de>
Sun, 2 Dec 2018 20:59:37 +0000 (21:59 +0100)
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>
lib/efi_selftest/efi_selftest_loaded_image.c

index f9b54ae..ea2b380 100644 (file)
@@ -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;
        }