* [PATCH] crypto: iaa - Simplify init_iaa_device()
@ 2025-11-27 22:20 Thorsten Blum
2025-12-19 7:04 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2025-11-27 22:20 UTC (permalink / raw)
To: Kristen Accardi, Vinicius Costa Gomes, Herbert Xu, David S. Miller
Cc: Thorsten Blum, linux-crypto, linux-kernel
Return the result directly to simplify init_iaa_device().
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
drivers/crypto/intel/iaa/iaa_crypto_main.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/crypto/intel/iaa/iaa_crypto_main.c b/drivers/crypto/intel/iaa/iaa_crypto_main.c
index 23f585219fb4..a91d8cb83d57 100644
--- a/drivers/crypto/intel/iaa/iaa_crypto_main.c
+++ b/drivers/crypto/intel/iaa/iaa_crypto_main.c
@@ -544,13 +544,7 @@ static struct iaa_device *add_iaa_device(struct idxd_device *idxd)
static int init_iaa_device(struct iaa_device *iaa_device, struct iaa_wq *iaa_wq)
{
- int ret = 0;
-
- ret = init_device_compression_modes(iaa_device, iaa_wq->wq);
- if (ret)
- return ret;
-
- return ret;
+ return init_device_compression_modes(iaa_device, iaa_wq->wq);
}
static void del_iaa_device(struct iaa_device *iaa_device)
--
Thorsten Blum <thorsten.blum@linux.dev>
GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] crypto: iaa - Simplify init_iaa_device()
2025-11-27 22:20 [PATCH] crypto: iaa - Simplify init_iaa_device() Thorsten Blum
@ 2025-12-19 7:04 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2025-12-19 7:04 UTC (permalink / raw)
To: Thorsten Blum
Cc: Kristen Accardi, Vinicius Costa Gomes, David S. Miller,
linux-crypto, linux-kernel
On Thu, Nov 27, 2025 at 11:20:58PM +0100, Thorsten Blum wrote:
> Return the result directly to simplify init_iaa_device().
>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
> ---
> drivers/crypto/intel/iaa/iaa_crypto_main.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-19 7:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-27 22:20 [PATCH] crypto: iaa - Simplify init_iaa_device() Thorsten Blum
2025-12-19 7:04 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®