]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: virtio - Drop superfluous [as]kcipher_ctx pointer
authorLukas Wunner <lukas@wunner.de>
Mon, 3 Feb 2025 13:37:04 +0000 (14:37 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 22 Feb 2025 07:56:02 +0000 (15:56 +0800)
commitdc91d858fb9251b25828ab63ac7220145cef282c
tree9a32ff06c1d13d25e11238ceee0e4343593fa9c6
parentaefeca1188962da52e3ed35ddb865d37a216dd53
crypto: virtio - Drop superfluous [as]kcipher_ctx pointer

The request context virtio_crypto_{akcipher,sym}_request contains a
pointer to the transform context virtio_crypto_[as]kcipher_ctx.

The pointer is superfluous as it can be calculated with the cheap
crypto_akcipher_reqtfm() + akcipher_tfm_ctx() and
crypto_skcipher_reqtfm() + crypto_skcipher_ctx() combos.

Drop the superfluous pointer.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/virtio/virtio_crypto_akcipher_algs.c
drivers/crypto/virtio/virtio_crypto_skcipher_algs.c