Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Thorsten Blum and committed by
Herbert Xu
e6bba609 375a0168

+2 -5
+2 -5
drivers/crypto/intel/iaa/iaa_crypto_main.c
··· 1696 1696 return ret; 1697 1697 } 1698 1698 1699 - static int iaa_unregister_compression_device(void) 1699 + static void iaa_unregister_compression_device(void) 1700 1700 { 1701 1701 if (iaa_crypto_registered) 1702 1702 crypto_unregister_acomp(&iaa_acomp_fixed_deflate); 1703 - 1704 - return 0; 1705 1703 } 1706 1704 1707 1705 static int iaa_crypto_probe(struct idxd_dev *idxd_dev) ··· 1915 1917 1916 1918 static void __exit iaa_crypto_cleanup_module(void) 1917 1919 { 1918 - if (iaa_unregister_compression_device()) 1919 - pr_debug("IAA compression device unregister failed\n"); 1920 + iaa_unregister_compression_device(); 1920 1921 1921 1922 iaa_crypto_debugfs_cleanup(); 1922 1923 driver_remove_file(&iaa_crypto_driver.drv,