lib/crc32test: correct printed bytes count

crc32c_le self test had a stray multiply by two inherited from
the crc32_le+crc32_be test loop.

Signed-off-by: Kevin Bracey <kevin@bracey.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Kevin Bracey 2022-01-18 12:23:50 +02:00 committed by Herbert Xu
parent 5cb29be47d
commit 1b3dce8b8a
1 changed files with 1 additions and 1 deletions

View File

@ -675,7 +675,7 @@ static int __init crc32c_test(void)
/* pre-warm the cache */ /* pre-warm the cache */
for (i = 0; i < 100; i++) { for (i = 0; i < 100; i++) {
bytes += 2*test[i].length; bytes += test[i].length;
crc ^= __crc32c_le(test[i].crc, test_buf + crc ^= __crc32c_le(test[i].crc, test_buf +
test[i].start, test[i].length); test[i].start, test[i].length);