Skip to contentSkip to conversation

crypto: iaa - Remove unreachable pr_debug from iaa_crypto_cleanup_module

PATCH In review Thorsten Blum 3 participants 3 messages Nov 28, 2025 – Dec 19, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/crypto/intel/iaa/iaa_crypto_main.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/crypto/intel/iaa/iaa_crypto_main.c +2 -5
index a91d8cb83d57..83d0ff1fc7c7 100644
@@ -1698,12 +1698,10 @@ static int iaa_register_compression_device(void)
 	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)
@@ -1919,8 +1917,7 @@ static int __init iaa_crypto_init_module(void)
 
 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,
Signature · 2 lines
Thorsten Blum <[email protected]>
GPG: 1D60 735E 8AEF 3BE4 73B6  9D84 7336 78FD 8DFE EAD4
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines

-----Original Message-----
From: Thorsten Blum <[email protected]>
Sent: Friday, November 28, 2025 5:54 AM
To: Accardi, Kristen C <[email protected]>; Gomes, Vinicius <[email protected]>; Sridhar, Kanchana P <[email protected]>; Herbert Xu <[email protected]>; David S. Miller <[email protected]>
Cc: Thorsten Blum <[email protected]>; [email protected]; [email protected]
Subject: [PATCH] crypto: iaa - Remove unreachable pr_debug from iaa_crypto_cleanup_module

Quoted 5 lines

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.

Quoted 36 lines
---
 drivers/crypto/intel/iaa/iaa_crypto_main.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/crypto/intel/iaa/iaa_crypto_main.c +2 -6
index a91d8cb83d57..83d0ff1fc7c7 100644
@@ -1698,12 +1698,10 @@ static int iaa_register_compression_device(void)
 	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)
@@ -1919,8 +1917,7 @@ static int __init iaa_crypto_init_module(void)
 
 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,
--

Thorsten Blum <[email protected]>
GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4

maintainer
#2 lore raw
In reply to Thorsten Blum
Quoted 8 lines · Thorsten Blum

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.

---
 drivers/crypto/intel/iaa/iaa_crypto_main.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt