Skip to content

Commit

Permalink
lib/crc32test: correct printed bytes count
Browse files Browse the repository at this point in the history
crc32c_le self test had a stray multiply by two inherited from
the crc32_le+crc32_be test loop.

Signed-off-by: Kevin Bracey <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
kjbracey2 authored and herbertx committed Jan 31, 2022
1 parent 5cb29be commit 1b3dce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/crc32test.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ static int __init crc32c_test(void)

/* pre-warm the cache */
for (i = 0; i < 100; i++) {
bytes += 2*test[i].length;
bytes += test[i].length;

crc ^= __crc32c_le(test[i].crc, test_buf +
test[i].start, test[i].length);
Expand Down

0 comments on commit 1b3dce8

Please sign in to comment.