diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-11-27 23:20:58 +0100 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-12-19 14:47:47 +0800 |
| commit | 375a0168e1ae917692d9175fc0494f74174d0eb2 (patch) | |
| tree | f266fedecf7394bbd1887e422b93cbe937abf280 /drivers/crypto/intel | |
| parent | 48329301969f6d21b2ef35f678e40f72b59eac94 (diff) | |
| download | linux-next-375a0168e1ae917692d9175fc0494f74174d0eb2.tar.gz linux-next-375a0168e1ae917692d9175fc0494f74174d0eb2.zip | |
crypto: iaa - Simplify init_iaa_device()
Return the result directly to simplify init_iaa_device().
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/intel')
| -rw-r--r-- | drivers/crypto/intel/iaa/iaa_crypto_main.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/crypto/intel/iaa/iaa_crypto_main.c b/drivers/crypto/intel/iaa/iaa_crypto_main.c index da9b2bc51519..0173535d6896 100644 --- a/drivers/crypto/intel/iaa/iaa_crypto_main.c +++ b/drivers/crypto/intel/iaa/iaa_crypto_main.c @@ -542,13 +542,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) |
