diff options
author | Kevin Bracey <kevin@bracey.fi> | 2022-01-18 13:23:50 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-01-31 03:21:43 +0300 |
commit | 1b3dce8b8ab30bb9f1401acefa08a47dc46f0813 (patch) | |
tree | 00bede1dd41462954f45db6f5bc8eb7e89fe12a3 /lib | |
parent | 5cb29be47d44d6090f1cdc21f439439dc43b471f (diff) | |
download | linux-1b3dce8b8ab30bb9f1401acefa08a47dc46f0813.tar.xz |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/crc32test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crc32test.c b/lib/crc32test.c index 61ddce2cff77..9b4af79412c4 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); |