diff options
author | Eric Biggers <ebiggers@google.com> | 2018-05-20 08:07:39 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-05-26 19:12:09 +0300 |
commit | 6943546c2ddec2fe40f1b79eaeb0db198d29f227 (patch) | |
tree | 7fb6114e22d84bf5be96f5e7e154086dfdff0e26 /crypto | |
parent | 7bcfb13630569fab75455fed57fcee6cf9e40096 (diff) | |
download | linux-6943546c2ddec2fe40f1b79eaeb0db198d29f227.tar.xz |
crypto: crc32-generic - remove __crc32_le()
The __crc32_le() wrapper function is pointless. Just call crc32_le()
directly instead.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/crc32_generic.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/crypto/crc32_generic.c b/crypto/crc32_generic.c index 20b879881a2d..00facd27bcc2 100644 --- a/crypto/crc32_generic.c +++ b/crypto/crc32_generic.c @@ -40,11 +40,6 @@ #define CHKSUM_BLOCK_SIZE 1 #define CHKSUM_DIGEST_SIZE 4 -static u32 __crc32_le(u32 crc, unsigned char const *p, size_t len) -{ - return crc32_le(crc, p, len); -} - /** No default init with ~0 */ static int crc32_cra_init(struct crypto_tfm *tfm) { @@ -55,7 +50,6 @@ static int crc32_cra_init(struct crypto_tfm *tfm) return 0; } - /* * Setting the seed allows arbitrary accumulators and flexible XOR policy * If your algorithm starts with ~0, then XOR with ~0 before you set @@ -89,7 +83,7 @@ static int crc32_update(struct shash_desc *desc, const u8 *data, { u32 *crcp = shash_desc_ctx(desc); - *crcp = __crc32_le(*crcp, data, len); + *crcp = crc32_le(*crcp, data, len); return 0; } @@ -97,7 +91,7 @@ static int crc32_update(struct shash_desc *desc, const u8 *data, static int __crc32_finup(u32 *crcp, const u8 *data, unsigned int len, u8 *out) { - put_unaligned_le32(__crc32_le(*crcp, data, len), out); + put_unaligned_le32(crc32_le(*crcp, data, len), out); return 0; } |