From: Kevin Bracey Date: Tue, 18 Jan 2022 10:23:50 +0000 (+0200) Subject: lib/crc32test: correct printed bytes count X-Git-Tag: v5.18-rc1~199^2~116 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1b3dce8b8ab30bb9f1401acefa08a47dc46f0813;p=thirdparty%2Flinux.git 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 Signed-off-by: Herbert Xu --- diff --git a/lib/crc32test.c b/lib/crc32test.c index 61ddce2cff777..9b4af79412c4a 100644 --- a/lib/crc32test.c +++ b/lib/crc32test.c @@ -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);