]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
nfcsim.c: Fix error checking for debugfs_create_dir
authorOsama Muhammad <osmtendev@gmail.com>
Thu, 25 May 2023 17:27:46 +0000 (22:27 +0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2023 11:18:35 +0000 (12:18 +0100)
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>
drivers/nfc/nfcsim.c

index 44eeb17ae48d911fbb75b92d0d5d8987d5e5bea6..a55381f80cd6e4d98eaece05340269ab6a7f45ed 100644 (file)
@@ -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)