]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: chelsio - stop using crypto_ahash::init
authorEric Biggers <ebiggers@google.com>
Sun, 22 Oct 2023 08:10:56 +0000 (01:10 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Oct 2023 10:04:29 +0000 (18:04 +0800)
commit9416210fb0b4b63ee7b812856ab6f989cfa7acbe
treea1a7fb39304d16126b86de225cee0ae2b1737af4
parent4d707a47517674434a7adb3a11ca9e1c9d4a1adf
crypto: chelsio - stop using crypto_ahash::init

The function pointer crypto_ahash::init is an internal implementation
detail of the ahash API that exists to help it support both ahash and
shash algorithms.  With an upcoming refactoring of how the ahash API
supports shash algorithms, this field will be removed.

Some drivers are invoking crypto_ahash::init to call into their own
code, which is unnecessary and inefficient.  The chelsio driver is one
of those drivers.  Make it just call its own code directly.

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