]> Gentwo Git Trees - linux/.git/commit
s390/dasd: Remove unnecessary debugfs_create() return checks
authorStefan Haberland <sth@linux.ibm.com>
Wed, 26 Nov 2025 16:06:32 +0000 (17:06 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 26 Nov 2025 17:14:17 +0000 (10:14 -0700)
commit764def9e8eaf1b1ccdcd89b8c16db4194ade775f
tree22f2e829114e5914e4ef1b88e255d6e7dcbf4d84
parentc943bfc6afb8d0e781b9b7406f36caa8bbf95cb9
s390/dasd: Remove unnecessary debugfs_create() return checks

The DASD driver only uses the dentry pointers when removing debugfs
entries, and debugfs_remove() can safely handle both NULL and ERR_PTR.
There is therefore no need to check debugfs_create() return values.

This simplifies the debugfs setup code without changing functionality.

Suggested-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Jan Hoeppner <hoeppner@linux.ibm.com>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/s390/block/dasd.c