Commit a8c383f2 authored by Minjie Du's avatar Minjie Du Committed by Xiaochen Shen
Browse files

crypto: iaa - Remove unnecessary debugfs_create_dir() error check in iaa_crypto_debugfs_init()

mainline inclusion
from mainline-v6.9-rc1
commit cc342dba0d39f226f4a5e26194404c3785481470
category: bugfix
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I9TA1S
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cc342dba0d39f226f4a5e26194404c3785481470



--------------------------------

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.

Intel-SIG: commit cc342dba0d39 crypto: iaa - Remove unnecessary debugfs_create_dir() error check in iaa_crypto_debugfs_init().
Backporting patches for Intel IAA crypto driver on Intel Xeon platform.

Signed-off-by: default avatarMinjie Du <duminjie@vivo.com>
Acked-by: default avatarTom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarXiaochen Shen <xiaochen.shen@intel.com>
parent 4630e7ff
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);