diff options
| author | Wang Ming <[email protected]> | 2023-07-13 08:56:06 +0000 |
|---|---|---|
| committer | Jon Mason <[email protected]> | 2023-08-18 13:50:06 +0000 |
| commit | f7d067041e35a8c25a8429ddac97dcca7cf28da2 (patch) | |
| tree | a3e655a8f02e4cc912806a3f4849ca37a69f8922 | |
| parent | Linux 6.5-rc1 (diff) | |
| download | kernel-f7d067041e35a8c25a8429ddac97dcca7cf28da2.tar.gz kernel-f7d067041e35a8c25a8429ddac97dcca7cf28da2.zip | |
ntb: Remove error checking for debugfs_create_dir()
It is expected that most callers should _ignore_ the errors
return by debugfs_create_dir() in tool_setup_dbgfs()
Signed-off-by: Wang Ming <[email protected]>
Reviewed-by: Dave Jiang <[email protected]>
Reviewed-by: Dan Carpenter <[email protected]>
Reviewed-by: Serge Semin <[email protected]>
Signed-off-by: Jon Mason <[email protected]>
| -rw-r--r-- | drivers/ntb/test/ntb_tool.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ntb/test/ntb_tool.c b/drivers/ntb/test/ntb_tool.c index eeeb4b1c97d2..e0acc11d29ba 100644 --- a/drivers/ntb/test/ntb_tool.c +++ b/drivers/ntb/test/ntb_tool.c @@ -1495,8 +1495,6 @@ static void tool_setup_dbgfs(struct tool_ctx *tc) tc->dbgfs_dir = debugfs_create_dir(dev_name(&tc->ntb->dev), tool_dbgfs_topdir); - if (!tc->dbgfs_dir) - return; debugfs_create_file("port", 0600, tc->dbgfs_dir, tc, &tool_port_fops); |
