Skip to content

Commit

Permalink
lib: crc32: reduce number of cases for crc32{, c}_combine
Browse files Browse the repository at this point in the history
We can safely reduce the number of test cases by a tenth.
There is no particular need to run as many as we're running
now for crc32{,c}_combine, that gives us still ~8000 tests
we're doing if people run kernels with crc selftests enabled
which is perfectly fine.

Signed-off-by: Daniel Borkmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Daniel Borkmann authored and davem330 committed Nov 4, 2013
1 parent cc0ac19 commit 1651483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/crc32.c
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ static int __init crc32c_combine_test(void)
int i, j;
int errors = 0, runs = 0;

for (i = 0; i < 100; i++) {
for (i = 0; i < 10; i++) {
u32 crc_full;

crc_full = __crc32c_le(test[i].crc, test_buf + test[i].start,
Expand Down Expand Up @@ -1131,7 +1131,7 @@ static int __init crc32_combine_test(void)
int i, j;
int errors = 0, runs = 0;

for (i = 0; i < 100; i++) {
for (i = 0; i < 10; i++) {
u32 crc_full;

crc_full = crc32_le(test[i].crc, test_buf + test[i].start,
Expand Down

0 comments on commit 1651483

Please sign in to comment.