]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitefc89b1ec8ac18dfffbbb045e87a1fb5b51d39b4
treed876a86a4b9afda2edc702071d0f2775ae975f01
parent5fd9134440b2f520fd44f4b40c2209fdc0f6c033
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