md: ignore discard return value
authorChaitanya Kulkarni <kch@nvidia.com>
Wed, 11 Feb 2026 20:44:36 +0000 (12:44 -0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Feb 2026 11:23:53 +0000 (04:23 -0700)
commit699fcfb6cb80a9df67fd2086a1c930d196d709f2
tree68cfc8807a8534c432ebacc2cd45aaf137707b6a
parent81e7223b1a2d63b655ee72577c8579f968d037e3
md: ignore discard return value

__blkdev_issue_discard() always returns 0, making all error checking at
call sites dead code.

Simplify md to only check !discard_bio by ignoring the
__blkdev_issue_discard() value.

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>
drivers/md/md.c