block: cleanup __blkdev_issue_discard()
authorMing Lei <ming.lei@redhat.com>
Mon, 29 Oct 2018 12:57:18 +0000 (20:57 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 9 Nov 2018 13:23:16 +0000 (06:23 -0700)
commitba5d73851e71847ba7f7f4c27a1a6e1f5ab91c79
treed876a86a4b9afda2edc702071d0f2775ae975f01
parent1adfc5e4136f5967d591c399aff95b3b035f16b7
block: cleanup __blkdev_issue_discard()

Cleanup __blkdev_issue_discard() a bit:

- remove local variable of 'end_sect'
- remove code block of 'fail'

Cc: Mike Snitzer <snitzer@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Xiao Ni <xni@redhat.com>
Cc: Mariusz Dabrowski <mariusz.dabrowski@intel.com>
Tested-by: Rui Salvaterra <rsalvaterra@gmail.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-lib.c