diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-09-23 12:08:06 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-10-01 16:28:15 +0800 |
commit | 5ec12f1c7bac891c3268dd6e441a3755ca2b46e0 (patch) | |
tree | e113f8b2b27eea24a582960a28162f9790ff8a5b /crypto/crypto_engine.c | |
parent | 0eb85cb3c8a78a5df09d8f91a246d5d068160b74 (diff) | |
download | linux-5ec12f1c7bac891c3268dd6e441a3755ca2b46e0.tar.gz linux-5ec12f1c7bac891c3268dd6e441a3755ca2b46e0.tar.bz2 linux-5ec12f1c7bac891c3268dd6e441a3755ca2b46e0.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.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crypto/crypto_engine.c b/crypto/crypto_engine.c index 108d9d55c509..e60a0eb628e8 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); |