Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Thorsten Blum and committed by
Herbert Xu
375a0168 48329301

+1 -7
+1 -7
drivers/crypto/intel/iaa/iaa_crypto_main.c
··· 542 542 543 543 static int init_iaa_device(struct iaa_device *iaa_device, struct iaa_wq *iaa_wq) 544 544 { 545 - int ret = 0; 546 - 547 - ret = init_device_compression_modes(iaa_device, iaa_wq->wq); 548 - if (ret) 549 - return ret; 550 - 551 - return ret; 545 + return init_device_compression_modes(iaa_device, iaa_wq->wq); 552 546 } 553 547 554 548 static void del_iaa_device(struct iaa_device *iaa_device)