Commit 699fcfb
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>1 parent 81e7223 commit 699fcfb
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9179 | 9179 | | |
9180 | 9180 | | |
9181 | 9181 | | |
9182 | | - | |
9183 | | - | |
| 9182 | + | |
| 9183 | + | |
9184 | 9184 | | |
9185 | 9185 | | |
9186 | 9186 | | |
| |||
0 commit comments