Skip to content

Commit 9b9e46a

Browse files
osmtendavem330
authored andcommitted
nfcsim.c: Fix error checking for debugfs_create_dir
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>
1 parent dc362e2 commit 9b9e46a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/nfc/nfcsim.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,6 @@ static struct dentry *nfcsim_debugfs_root;
336336
static void nfcsim_debugfs_init(void)
337337
{
338338
nfcsim_debugfs_root = debugfs_create_dir("nfcsim", NULL);
339-
340-
if (!nfcsim_debugfs_root)
341-
pr_err("Could not create debugfs entry\n");
342-
343339
}
344340

345341
static void nfcsim_debugfs_remove(void)

0 commit comments

Comments
 (0)