crypto: iaa - Remove unreachable pr_debug from iaa_crypto_cleanup_module

iaa_unregister_compression_device() always returns 0, making the debug
log message unreachable. Remove the log statement and convert
iaa_unregister_compression_device() to a void function.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Acked-by: Kanchana P Sridhar <kanchana.p.sridhar@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Thorsten Blum
2025-11-28 14:54:12 +01:00
committed by Herbert Xu
parent 375a0168e1
commit e6bba60966

View File

@@ -1696,12 +1696,10 @@ out:
return ret;
}
static int iaa_unregister_compression_device(void)
static void iaa_unregister_compression_device(void)
{
if (iaa_crypto_registered)
crypto_unregister_acomp(&iaa_acomp_fixed_deflate);
return 0;
}
static int iaa_crypto_probe(struct idxd_dev *idxd_dev)
@@ -1917,8 +1915,7 @@ err_aecs_init:
static void __exit iaa_crypto_cleanup_module(void)
{
if (iaa_unregister_compression_device())
pr_debug("IAA compression device unregister failed\n");
iaa_unregister_compression_device();
iaa_crypto_debugfs_cleanup();
driver_remove_file(&iaa_crypto_driver.drv,