We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a42bfd commit b6e21b7Copy full SHA for b6e21b7
lib/checksum_kunit.c
@@ -468,12 +468,9 @@ static __wsum to_wsum(u32 x)
468
469
static void assert_setup_correct(struct kunit *test)
470
{
471
- CHECK_EQ(sizeof(random_buf) / sizeof(random_buf[0]), MAX_LEN);
472
- CHECK_EQ(sizeof(expected_results) / sizeof(expected_results[0]),
473
- MAX_LEN);
474
- CHECK_EQ(sizeof(init_sums_no_overflow) /
475
- sizeof(init_sums_no_overflow[0]),
476
+ CHECK_EQ(ARRAY_SIZE(random_buf), MAX_LEN);
+ CHECK_EQ(ARRAY_SIZE(expected_results), MAX_LEN);
+ CHECK_EQ(ARRAY_SIZE(init_sums_no_overflow), MAX_LEN);
477
}
478
479
/*
0 commit comments