diff options
author | Heinrich Schuchardt | 2019-05-04 19:48:38 +0200 |
---|---|---|
committer | Heinrich Schuchardt | 2019-05-07 21:10:04 +0200 |
commit | 8101dd3dfaa9bf85a80b76fc2be1ae59bd051bc9 (patch) | |
tree | 9707a6065b584f79203395525bc0495035861b61 /lib/efi_selftest/efi_selftest_util.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_util.c')
-rw-r--r-- | lib/efi_selftest/efi_selftest_util.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/efi_selftest/efi_selftest_util.c b/lib/efi_selftest/efi_selftest_util.c index 96a964c863e..ea73c25220f 100644 --- a/lib/efi_selftest/efi_selftest_util.c +++ b/lib/efi_selftest/efi_selftest_util.c @@ -102,20 +102,6 @@ u16 *efi_st_translate_code(u16 code) return efi_st_unknown; } -int efi_st_memcmp(const void *buf1, const void *buf2, size_t length) -{ - const u8 *pos1 = buf1; - const u8 *pos2 = buf2; - - for (; length; --length) { - if (*pos1 != *pos2) - return *pos1 - *pos2; - ++pos1; - ++pos2; - } - return 0; -} - int efi_st_strcmp_16_8(const u16 *buf1, const char *buf2) { for (; *buf1 || *buf2; ++buf1, ++buf2) { |