mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-20 11:55:03 +00:00
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>
This commit is contained in:
parent
a2505fc8a9
commit
335ce71db7
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ static int execute(void)
|
||||||
efi_st_error("ProtocolsPerHandle failed\n");
|
efi_st_error("ProtocolsPerHandle failed\n");
|
||||||
return EFI_ST_FAILURE;
|
return EFI_ST_FAILURE;
|
||||||
}
|
}
|
||||||
if (!protocol_buffer_count | !protocol_buffer) {
|
if (!protocol_buffer_count || !protocol_buffer) {
|
||||||
efi_st_error("ProtocolsPerHandle returned no protocol\n");
|
efi_st_error("ProtocolsPerHandle returned no protocol\n");
|
||||||
return EFI_ST_FAILURE;
|
return EFI_ST_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue