null_blk: simplify copy_from_nullb
authorKeith Busch <kbusch@kernel.org>
Thu, 6 Nov 2025 01:54:44 +0000 (17:54 -0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 6 Nov 2025 23:27:21 +0000 (16:27 -0700)
commit1165d20f4d1abba59ff2f032df271605ad49c255
tree860fb50f77b8bb0b9478a74a7cafd6d3853a3d95
parente87d66ab27ac89494b75ddc3fed697b5aa8417f1
null_blk: simplify copy_from_nullb

It always returns success, so the code that saves the errors status, but
proceeds without checking it looks a bit odd. Clean this up.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Tested-by: Hans Holmberg <hans.holmberg@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk/main.c