Standardize types to uint8_t and clean up legacy variables and setup boilerplate

This commit is contained in:
Andrea Mazzoleni 2026-09-02 20:45:06 +02:00
parent 27329c6f8c
commit 8f27c393d6
8 changed files with 25 additions and 173 deletions

View file

@ -627,7 +627,7 @@ int raid_selftest(void)
{
const int nd = TEST_COUNT;
const size_t size = TEST_SIZE;
const int nv = nd + RAID_PARITY_MAX * 2 + 1;
const int nv = nd + RAID_PARITY_MAX * 2;
void *v_alloc;
void **v;
void *ref[TEST_COUNT + RAID_PARITY_MAX];
@ -653,9 +653,6 @@ int raid_selftest(void)
/* LCOV_EXCL_STOP */
}
memset(v[nv - 1], 0, size);
raid_zero(v[nv - 1]);
/* use the multiplication table as data */
for (i = 0; i < nd; ++i)
ref[i] = ((uint8_t *)raid_gfmul) + size * i;
@ -873,12 +870,6 @@ int raid_selftest(void)
ret = 0;
bail:
/*
* Reset the global zero buffer so that it does not point to
* the deallocated memory.
*/
raid_zero(0);
free(v);
free(v_alloc);