summaryrefslogtreecommitdiff
path: root/crypto/crypto_engine.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-09-23 12:08:06 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2023-10-01 16:28:15 +0800
commit7f456eec227b9762e6307e49485c0c776b1b816b (patch)
treea9d5d367a61ccc597c981d75493b0cd80584898c /crypto/crypto_engine.c
parentd12465f517d24e1dbed244fcfdc67f89631abd19 (diff)
downloadlinux-crypto-7f456eec227b9762e6307e49485c0c776b1b816b.tar.gz
linux-crypto-7f456eec227b9762e6307e49485c0c776b1b816b.zip
crypto: engine - Make crypto_engine_exit() return void
All callers ignore the return value, so simplify by not providing one. Note that crypto_engine_exit() is typically called in a device driver's remove path (or the error path in probe), where errors cannot be handled anyhow. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/crypto_engine.c')
-rw-r--r--crypto/crypto_engine.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/crypto/crypto_engine.c b/crypto/crypto_engine.c
index 108d9d55..e60a0eb6 100644
--- a/crypto/crypto_engine.c
+++ b/crypto/crypto_engine.c
@@ -552,20 +552,16 @@ EXPORT_SYMBOL_GPL(crypto_engine_alloc_init);
/**
* crypto_engine_exit - free the resources of hardware engine when exit
* @engine: the hardware engine need to be freed
- *
- * Return 0 for success.
*/
-int crypto_engine_exit(struct crypto_engine *engine)
+void crypto_engine_exit(struct crypto_engine *engine)
{
int ret;
ret = crypto_engine_stop(engine);
if (ret)
- return ret;
+ return;
kthread_destroy_worker(engine->kworker);
-
- return 0;
}
EXPORT_SYMBOL_GPL(crypto_engine_exit);