]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: ahash - check for shash type instead of not ahash type
authorEric Biggers <ebiggers@google.com>
Sun, 22 Oct 2023 08:10:59 +0000 (01:10 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Oct 2023 10:04:29 +0000 (18:04 +0800)
commit85b84327b3f0df32be19e01257fb375972be115c
treedf7441abfa69becce07a84876ba7118ec802da82
parentecf889b70b6c0a174965a902a381f967bfd06914
crypto: ahash - check for shash type instead of not ahash type

Since the previous patch made crypto_shash_type visible to ahash.c,
change checks for '->cra_type != &crypto_ahash_type' to '->cra_type ==
&crypto_shash_type'.  This makes more sense and avoids having to
forward-declare crypto_ahash_type.  The result is still the same, since
the type is either shash or ahash here.

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