]> git.baikalelectronics.ru Git - kernel.git/commit
block: remove the nr_sectors variable in generic_make_request_checks
authorChristoph Hellwig <hch@lst.de>
Wed, 1 Jul 2020 08:59:42 +0000 (10:59 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Jul 2020 13:27:24 +0000 (07:27 -0600)
commit135eb85e47ebb9ac7db4d0864cd05ee7dc7a689b
tree81384c304cd9e72dd870c4f04b561c8275f9070d
parented2bfb307ab9f7c1350e842f4a62e2e79453b8f4
block: remove the nr_sectors variable in generic_make_request_checks

The variable is only used once, so just open code the bio_sector()
there.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c