nvme: clean up the check for too large logic block sizes
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Sep 2020 10:03:13 +0000 (12:03 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 7 Oct 2020 05:56:18 +0000 (07:56 +0200)
commit13f0b26bbf0a8660d23cad22ed0c4b58b5675dc4
tree8bdfd52872064450b66c71e7016f60276ddc0893
parentf9d5f4579feafa721dba2f350fc064a1852c6f8c
nvme: clean up the check for too large logic block sizes

Use a single statement to set both the capacity and fake block size
instead of two.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c