From: Eric Biggers <ebiggers@xxxxxxxxxx> 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@xxxxxxxxxx> --- include/crypto/hash.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/crypto/hash.h b/include/crypto/hash.h index 52e57e93b2f59..d3a380ae894ad 100644 --- a/include/crypto/hash.h +++ b/include/crypto/hash.h @@ -791,26 +791,20 @@ static inline void crypto_free_shash(struct crypto_shash *tfm) static inline const char *crypto_shash_alg_name(struct crypto_shash *tfm) { return crypto_tfm_alg_name(crypto_shash_tfm(tfm)); } 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 * * The block size for the message digest cipher referenced with the cipher * handle is returned. * * Return: block size of cipher */ static inline unsigned int crypto_shash_blocksize(struct crypto_shash *tfm) -- 2.42.0