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)
commitfe4ec12e1865a2114056b799e4869bf4c30e47df
tree19bfd6b1461f30f15f8a3e05ab257a90b906222e
parent6e2fa4dd683a22a7697e7ff51dad499406094d28
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