Skip to content

Commit

Permalink
raidz_test: init_rand: fix unused, remove argsused
Browse files Browse the repository at this point in the history
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes openzfs#12835
  • Loading branch information
nabijaczleweli authored and nicman23 committed Aug 22, 2022
1 parent 6ae58ba commit 7e89253
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cmd/raidz_test/raidz_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,8 @@ cmp_data(raidz_test_opts_t *opts, raidz_map_t *rm)
static int
init_rand(void *data, size_t size, void *private)
{
int i;
int *dst = (int *)data;

for (i = 0; i < size / sizeof (int); i++)
dst[i] = rand_data[i];

(void) private;
memcpy(data, rand_data, size);
return (0);
}

Expand Down

0 comments on commit 7e89253

Please sign in to comment.