util/nvmutil: tidy up memcmp

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-17 20:35:10 +00:00
parent 2fe71dfb90
commit 5d7e516e33
+1 -4
View File
@@ -2784,12 +2784,9 @@ x_i_memcmp(const void *a, const void *b, unsigned long n)
const unsigned char *pa = (const unsigned char *)a;
const unsigned char *pb = (const unsigned char *)b;
while (n--) {
for ( ; n--; ++pa, ++pb)
if (*pa != *pb)
return *pa - *pb;
pa++;
pb++;
}
return 0;
}