]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
block: drbd: no need to check return value of debugfs_create functions
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jun 2019 15:45:49 +0000 (17:45 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jun 2019 09:28:16 +0000 (03:28 -0600)
commitd27e84a305980ac61df0a6841059d0eb09b8283d
tree5b18ea38ffe928d345836a3c34ed345fe2fdb1d0
parent3a211b71529fdd0a89095b18fb19155db0c8fb5d
block: drbd: no need to check return value of debugfs_create functions

When calling debugfs functions, there is no need to ever check the
return value.  The function can work or not, but the code logic should
never do something different based on this.

Cc: Philipp Reisner <philipp.reisner@linbit.com>
Cc: Lars Ellenberg <lars.ellenberg@linbit.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: drbd-dev@lists.linbit.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_debugfs.c
drivers/block/drbd/drbd_debugfs.h
drivers/block/drbd/drbd_main.c