mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3]  ntb: Remove error checking for debugfs_create_dir()
@ 2023-07-13  8:56 Wang Ming
  2023-07-13  9:27 ` Dan Carpenter
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Wang Ming @ 2023-07-13  8:56 UTC (permalink / raw)
  To: Jon Mason, Dave Jiang, Allen Hubbe, Serge Semin, Wang Ming,
	Dan Carpenter, Jiasheng Jiang, ntb, linux-kernel
  Cc: opensource.kernel, dan.carpenter

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>
---
 drivers/ntb/test/ntb_tool.c | 2 --
 1 file changed, 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);
-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-07-14 14:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-13  8:56 [PATCH v3] ntb: Remove error checking for debugfs_create_dir() Wang Ming
2023-07-13  9:27 ` Dan Carpenter
     [not found]   ` <SG2PR06MB3743648B9D54AF2D6CB4229ABD37A@SG2PR06MB3743.apcprd06.prod.outlook.com>
2023-07-13 10:14     ` 回复: " Dan Carpenter
2023-07-13 16:05 ` Dave Jiang
     [not found] ` <e93e7bb2-c254-06e2-87b7-1f59e52930f6@web.de>
2023-07-14  5:57   ` Dan Carpenter
2023-07-14 10:00 ` Serge Semin
     [not found]   ` <b5139e22-cf5e-e95c-fd33-7e1b9b4d665b@web.de>
2023-07-14 14:03     ` Serge Semin
2023-07-14 14:08     ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®