Skip to content

Commit

Permalink
nfcsim.c: Fix error checking for debugfs_create_dir
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Osama Muhammad authored and David S. Miller committed May 26, 2023
1 parent dc362e2 commit 9b9e46a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/nfc/nfcsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9b9e46a

Please sign in to comment.