Skip to content

Commit f7d0670

Browse files
Wang Mingjonmason
authored andcommitted
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 <machel@vivo.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Serge Semin <fancer.lancer@gmail.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
1 parent 06c2afb commit f7d0670

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/ntb/test/ntb_tool.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,8 +1495,6 @@ static void tool_setup_dbgfs(struct tool_ctx *tc)
14951495

14961496
tc->dbgfs_dir = debugfs_create_dir(dev_name(&tc->ntb->dev),
14971497
tool_dbgfs_topdir);
1498-
if (!tc->dbgfs_dir)
1499-
return;
15001498

15011499
debugfs_create_file("port", 0600, tc->dbgfs_dir,
15021500
tc, &tool_port_fops);

0 commit comments

Comments
 (0)