[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230713091452.3997-1-machel@vivo.com>
Date: Thu, 13 Jul 2023 17:14:39 +0800
From: Wang Ming <machel@...o.com>
To: linux-block@...r.kernel.org, Jens Axboe <axboe@...nel.dk>,
linux-kernel@...r.kernel.org
Cc: opensource.kernel@...o.com, gregkh@...uxfoundation.org,
Wang Ming <machel@...o.com>
Subject: [PATCH v1] block: Remove error checking for debugfs_create_dir()
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@...o.com>
---
drivers/block/pktcdvd.c | 2 --
1 file changed, 2 deletions(-)
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);
--
2.25.1
Powered by blists - more mailing lists