From: Eric Biggers Date: Thu, 19 Oct 2023 05:53:43 +0000 (-0700) Subject: crypto: shash - remove crypto_shash_alignmask X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3dca18fcfebf33f2a73876f9314f7621c2e2fb0b;p=linux.git crypto: shash - remove crypto_shash_alignmask 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 Signed-off-by: Herbert Xu --- 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 @@ -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