summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOsama Muhammad <osmtendev@gmail.com>2023-05-25 22:27:46 +0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-28 10:29:51 +0200
commitcce681383d34dae8243484b19b9feaa51587e118 (patch)
tree9d05ac6b7f59df73e42b9ca8c87323c937b947f6
parent8a5ddd1430d4e00d601f2f6b32968b46db51bc53 (diff)
downloadlinux-stable-cce681383d34dae8243484b19b9feaa51587e118.tar.gz
linux-stable-cce681383d34dae8243484b19b9feaa51587e118.tar.bz2
linux-stable-cce681383d34dae8243484b19b9feaa51587e118.zip
nfcsim.c: Fix error checking for debugfs_create_dir
[ Upstream commit 9b9e46aa07273ceb96866b2e812b46f1ee0b8d2f ] This patch fixes the error checking in nfcsim.c. The DebugFS kernel API is developed in a way that the caller can safely ignore the errors that occur during the creation of DebugFS nodes. Signed-off-by: Osama Muhammad <osmtendev@gmail.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/nfc/nfcsim.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/nfc/nfcsim.c b/drivers/nfc/nfcsim.c
index 85bf8d586c70..0f6befe8be1e 100644
--- a/drivers/nfc/nfcsim.c
+++ b/drivers/nfc/nfcsim.c
@@ -336,10 +336,6 @@ static struct dentry *nfcsim_debugfs_root;
static void nfcsim_debugfs_init(void)
{
nfcsim_debugfs_root = debugfs_create_dir("nfcsim", NULL);
-
- if (!nfcsim_debugfs_root)
- pr_err("Could not create debugfs entry\n");
-
}
static void nfcsim_debugfs_remove(void)