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)
commit9b9e46aa07273ceb96866b2e812b46f1ee0b8d2f
tree978a75f47c3d6d38f9454cf43e85be67b09dd54b
parentdc362e20cd6ab7a93d1b09669730c406f0910c35
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>
drivers/nfc/nfcsim.c