diff options
author | Minjie Du <duminjie@vivo.com> | 2024-01-09 10:19:14 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2024-01-26 16:39:32 +0800 |
commit | cc342dba0d39f226f4a5e26194404c3785481470 (patch) | |
tree | 996fa94c329e97dd9d7b78bd9c00ae78af3e4571 /drivers/crypto/intel | |
parent | 3274819b3c81c18c01e3c0e0ea726870ec237ac0 (diff) | |
download | linux-stable-cc342dba0d39f226f4a5e26194404c3785481470.tar.gz linux-stable-cc342dba0d39f226f4a5e26194404c3785481470.tar.bz2 linux-stable-cc342dba0d39f226f4a5e26194404c3785481470.zip |
crypto: iaa - Remove unnecessary debugfs_create_dir() error check in iaa_crypto_debugfs_init()
This patch removes the debugfs_create_dir() error checking in
iaa_crypto_debugfs_init(). Because the debugfs_create_dir() is developed
in a way that the caller can safely handle the errors that
occur during the creation of DebugFS nodes.
Signed-off-by: Minjie Du <duminjie@vivo.com>
Acked-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/intel')
-rw-r--r-- | drivers/crypto/intel/iaa/iaa_crypto_stats.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/crypto/intel/iaa/iaa_crypto_stats.c b/drivers/crypto/intel/iaa/iaa_crypto_stats.c index 2e3b7b73af20..cbf87d0effe3 100644 --- a/drivers/crypto/intel/iaa/iaa_crypto_stats.c +++ b/drivers/crypto/intel/iaa/iaa_crypto_stats.c @@ -275,8 +275,6 @@ int __init iaa_crypto_debugfs_init(void) return -ENODEV; iaa_crypto_debugfs_root = debugfs_create_dir("iaa_crypto", NULL); - if (!iaa_crypto_debugfs_root) - return -ENOMEM; debugfs_create_u64("max_comp_delay_ns", 0644, iaa_crypto_debugfs_root, &max_comp_delay_ns); |