Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kevin Bracey and committed by
Herbert Xu
1b3dce8b 5cb29be4

+1 -1
+1 -1
lib/crc32test.c
··· 675 675 676 676 /* pre-warm the cache */ 677 677 for (i = 0; i < 100; i++) { 678 - bytes += 2*test[i].length; 678 + bytes += test[i].length; 679 679 680 680 crc ^= __crc32c_le(test[i].crc, test_buf + 681 681 test[i].start, test[i].length);