提交 1b3dce8b 编写于 作者: K Kevin Bracey 提交者: Herbert Xu

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: NKevin Bracey <kevin@bracey.fi>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 5cb29be4
...@@ -675,7 +675,7 @@ static int __init crc32c_test(void) ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册