]> 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)
commit9466fb041a87e085e51d79030e0dd691b7194001
tree19bfd6b1461f30f15f8a3e05ab257a90b906222e
parent202fcc55d5e68a81c640807ba98ba020fbc967e9
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