diff mbox series

[v1] block: Remove error checking for debugfs_create_dir()

Message ID 20230713091452.3997-1-machel@vivo.com (mailing list archive)
State New, archived
Headers show
Series [v1] block: Remove error checking for debugfs_create_dir() | expand

Commit Message

Wang Ming July 13, 2023, 9:14 a.m. UTC
It is expected that most callers should _ignore_ the errors
return by debugfs_create_dir() in pkt_debugfs_dev_new().

Signed-off-by: Wang Ming <machel@vivo.com>
---
 drivers/block/pktcdvd.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c
index a1428538bda5..1d07208faeeb 100644
--- a/drivers/block/pktcdvd.c
+++ b/drivers/block/pktcdvd.c
@@ -497,8 +497,6 @@  static void pkt_debugfs_dev_new(struct pktcdvd_device *pd)
 	if (!pkt_debugfs_root)
 		return;
 	pd->dfs_d_root = debugfs_create_dir(pd->disk->disk_name, pkt_debugfs_root);
-	if (!pd->dfs_d_root)
-		return;
 
 	pd->dfs_f_info = debugfs_create_file("info", 0444, pd->dfs_d_root,
 					     pd, &pkt_seq_fops);