]> www.infradead.org Git - nvme.git/commit
nbd: Remove __force casts
authorChristoph Hellwig <hch@lst.de>
Tue, 4 Jun 2024 22:15:31 +0000 (16:15 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 12 Jun 2024 20:47:07 +0000 (14:47 -0600)
commit957df9af723ccc570da835978cf7fe7863632842
tree9a2bd7308508fb55c68a3ab00b20ef133076f0b5
parente038ee6189842e9662d2fc59d09dbcf48350cf99
nbd: Remove __force casts

Make it again possible for sparse to verify that blk_status_t and Unix
error codes are used in the proper context by making nbd_send_cmd()
return a blk_status_t instead of an integer.

No functionality has been changed.

Signed-off-by: Christoph Hellwig <hch@lst.de>
[ bvanassche: added description and made two small formatting changes ]
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20240604221531.327131-1-bvanassche@acm.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c