diff options
| author | Chaitanya Kulkarni <kch@nvidia.com> | 2026-02-11 12:44:37 -0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-02-12 04:23:53 -0700 |
| commit | 38d12f15c4772b5383b1249b2afb0d206a430f0f (patch) | |
| tree | 0fccc1886e35f8e4b9536a68d1cf1b5998fdc353 /include/linux/tty_buffer.h | |
| parent | 699fcfb6cb80a9df67fd2086a1c930d196d709f2 (diff) | |
nvmet: ignore discard return value
__blkdev_issue_discard() always returns 0, making the error checking
in nvmet_bdev_discard_range() dead code.
Kill the function nvmet_bdev_discard_range() and call
__blkdev_issue_discard() directly from nvmet_bdev_execute_discard(),
since no error handling is needed anymore for __blkdev_issue_discard()
call.
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/tty_buffer.h')
0 files changed, 0 insertions, 0 deletions
