crypto: virtio - Drop superfluous ctx->tfm backpointer
authorLukas Wunner <lukas@wunner.de>
Mon, 3 Feb 2025 13:37:03 +0000 (14:37 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 22 Feb 2025 07:56:02 +0000 (15:56 +0800)
commitaefeca1188962da52e3ed35ddb865d37a216dd53
treed044f76e377af5da48103ed79d0a142967b008d5
parent17410baf65c51d9792528c5484c8167bd186e98d
crypto: virtio - Drop superfluous ctx->tfm backpointer

struct virtio_crypto_[as]kcipher_ctx contains a backpointer to struct
crypto_[as]kcipher which is superfluous in two ways:

First, it's not used anywhere.  Second, the context is embedded into
struct crypto_tfm, so one could just use container_of() to get from the
context to crypto_tfm and from there to crypto_[as]kcipher.

Drop the superfluous backpointer.

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