]> git.baikalelectronics.ru Git - kernel.git/commit
floppy: use block_size
authorChristoph Hellwig <hch@lst.de>
Fri, 26 Jun 2020 08:01:52 +0000 (10:01 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Jul 2020 14:08:08 +0000 (08:08 -0600)
commitf50f1fe02a7db59ca4c211d4a58ffa045e00ee65
tree19bfd6b1461f30f15f8a3e05ab257a90b906222e
parenta24d49f4e5165efa7a2cc88909ebb29957ea27f6
floppy: use block_size

Use the block_size helper instead of open coding it.  Also remove the
check for a 0 block size, as that can't happen.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/floppy.c