diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-05-04 19:48:38 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-05-07 21:10:04 +0200 |
commit | 8101dd3dfaa9bf85a80b76fc2be1ae59bd051bc9 (patch) | |
tree | 9707a6065b584f79203395525bc0495035861b61 /lib/efi_selftest/efi_selftest_loaded_image.c | |
parent | 126a43f15b3627d39e71636f93c500d57adeb28a (diff) |
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>
Diffstat (limited to 'lib/efi_selftest/efi_selftest_loaded_image.c')
-rw-r--r-- | lib/efi_selftest/efi_selftest_loaded_image.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/efi_selftest/efi_selftest_loaded_image.c b/lib/efi_selftest/efi_selftest_loaded_image.c index ea2b380a77..5889ab1261 100644 --- a/lib/efi_selftest/efi_selftest_loaded_image.c +++ b/lib/efi_selftest/efi_selftest_loaded_image.c @@ -60,9 +60,8 @@ static int execute(void) efi_st_printf("%u protocols installed on image handle\n", (unsigned int)protocol_buffer_count); for (i = 0; i < protocol_buffer_count; ++i) { - if (efi_st_memcmp(protocol_buffer[i], - &loaded_image_protocol_guid, - sizeof(efi_guid_t))) + if (memcmp(protocol_buffer[i], &loaded_image_protocol_guid, + sizeof(efi_guid_t))) found = true; } if (!found) { |