From: Heinrich Schuchardt Date: Wed, 18 Oct 2017 16:13:11 +0000 (+0200) Subject: efi_selftest: efi_st_memcmp should return 0 X-Git-Tag: v2018.01-rc2~58^2~61 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9a52a0f77da6bbc4a1b13bff1aceb376057af9b3;p=u-boot efi_selftest: efi_st_memcmp should return 0 If the compared memory areas match the return value should be 0. We should not use the unrelated constant EFI_ST_SUCCESS. Signed-off-by: Heinrich Schuchardt Signed-off-by: Alexander Graf --- diff --git a/lib/efi_selftest/efi_selftest_util.c b/lib/efi_selftest/efi_selftest_util.c index 5cffe383d8..5f81f251c4 100644 --- a/lib/efi_selftest/efi_selftest_util.c +++ b/lib/efi_selftest/efi_selftest_util.c @@ -21,5 +21,5 @@ int efi_st_memcmp(const void *buf1, const void *buf2, size_t length) ++pos1; ++pos2; } - return EFI_ST_SUCCESS; + return 0; }