]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 6 Mar 2020 07:13:20 +0000 (02:13 -0500)
commit3a343bb30d66ac9db1866ce950334e1af1390b9f
tree705240d219e9fa5f9f99a504c0cadc69f0c499dd
parent5eb330c74e47800168681fd8e1102114194c894f
block: cleanup __blkdev_issue_discard()

BugLink: https://bugs.launchpad.net/bugs/1864904
commit ba5d73851e71847ba7f7f4c27a1a6e1f5ab91c79 upstream.

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>
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
block/blk-lib.c