mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
efi_selftest: remove redundant function efi_st_memcmp()
Function memcmp() is available in efi_freestanding.c. So we do not remove a further implementation. Replace all usages of efi_st_memcmp() by memcmp(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
@@ -332,13 +332,13 @@ static int execute(void)
|
||||
efi_st_error("Failed to get protocols per handle\n");
|
||||
return EFI_ST_FAILURE;
|
||||
}
|
||||
if (efi_st_memcmp(prot_buffer[0], &guid1, 16) &&
|
||||
efi_st_memcmp(prot_buffer[1], &guid1, 16)) {
|
||||
if (memcmp(prot_buffer[0], &guid1, 16) &&
|
||||
memcmp(prot_buffer[1], &guid1, 16)) {
|
||||
efi_st_error("Failed to get protocols per handle\n");
|
||||
return EFI_ST_FAILURE;
|
||||
}
|
||||
if (efi_st_memcmp(prot_buffer[0], &guid3, 16) &&
|
||||
efi_st_memcmp(prot_buffer[1], &guid3, 16)) {
|
||||
if (memcmp(prot_buffer[0], &guid3, 16) &&
|
||||
memcmp(prot_buffer[1], &guid3, 16)) {
|
||||
efi_st_error("Failed to get protocols per handle\n");
|
||||
return EFI_ST_FAILURE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user