]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: iaa - Remove unreachable pr_debug from iaa_crypto_cleanup_module
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 28 Nov 2025 13:54:12 +0000 (14:54 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 19 Dec 2025 06:47:47 +0000 (14:47 +0800)
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>
drivers/crypto/intel/iaa/iaa_crypto_main.c

index 0173535d689686bd75a768052c533ef1f7a52981..edd5a660aa10be1ba5348869c239526a0b96ad0f 100644 (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,