]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
crypto: shash - remove crypto_shash_alignmask
authorEric Biggers <ebiggers@google.com>
Thu, 19 Oct 2023 05:53:43 +0000 (22:53 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Oct 2023 10:04:25 +0000 (18:04 +0800)
crypto_shash_alignmask() no longer has any callers, and it always
returns 0 now that the shash algorithm type no longer supports nonzero
alignmasks.  Therefore, remove it.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/hash.h

index 52e57e93b2f591b253eb11ef7c962aa85e8de2df..d3a380ae894add04ec0e6ad5dc912437c0bfedc9 100644 (file)
@@ -798,12 +798,6 @@ static inline const char *crypto_shash_driver_name(struct crypto_shash *tfm)
        return crypto_tfm_alg_driver_name(crypto_shash_tfm(tfm));
 }
 
-static inline unsigned int crypto_shash_alignmask(
-       struct crypto_shash *tfm)
-{
-       return crypto_tfm_alg_alignmask(crypto_shash_tfm(tfm));
-}
-
 /**
  * crypto_shash_blocksize() - obtain block size for cipher
  * @tfm: cipher handle