From: Eric Biggers Date: Thu, 19 Oct 2023 05:53:39 +0000 (-0700) Subject: crypto: drbg - stop checking crypto_shash_alignmask X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=eed577b9a9220dc9f3968b54d055a3884d219897;p=users%2Fjedix%2Flinux-maple.git crypto: drbg - stop checking crypto_shash_alignmask Now that the shash algorithm type does not support nonzero alignmasks, crypto_shash_alignmask() always returns 0 and will be removed. In preparation for this, stop checking crypto_shash_alignmask() in drbg. Signed-off-by: Eric Biggers Signed-off-by: Herbert Xu --- diff --git a/crypto/drbg.c b/crypto/drbg.c index ff4ebbc68efa..e01f8c7769d0 100644 --- a/crypto/drbg.c +++ b/crypto/drbg.c @@ -1698,7 +1698,7 @@ static int drbg_init_hash_kernel(struct drbg_state *drbg) sdesc->shash.tfm = tfm; drbg->priv_data = sdesc; - return crypto_shash_alignmask(tfm); + return 0; } static int drbg_fini_hash_kernel(struct drbg_state *drbg)