]> www.infradead.org Git - users/willy/pagecache.git/commitdiff
ntb: Remove error checking for debugfs_create_dir()
authorWang Ming <machel@vivo.com>
Thu, 13 Jul 2023 08:56:06 +0000 (16:56 +0800)
committerJon Mason <jdmason@kudzu.us>
Thu, 13 Jul 2023 13:06:44 +0000 (09:06 -0400)
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: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_tool.c

index eeeb4b1c97d2c20918ec7ef98bc75ad8bd599c9b..e0acc11d29ba605072d1a301cacc52d6671e5a14 100644 (file)
@@ -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);