raidz_test: init_rand: fix unused, remove argsused

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12835
This commit is contained in:
наб 2021-12-11 00:53:04 +01:00 committed by Brian Behlendorf
parent ff1acbac30
commit 876b60dcfb
1 changed files with 2 additions and 6 deletions

View File

@ -266,12 +266,8 @@ cmp_data(raidz_test_opts_t *opts, raidz_map_t *rm)
static int static int
init_rand(void *data, size_t size, void *private) init_rand(void *data, size_t size, void *private)
{ {
int i; (void) private;
int *dst = (int *)data; memcpy(data, rand_data, size);
for (i = 0; i < size / sizeof (int); i++)
dst[i] = rand_data[i];
return (0); return (0);
} }