nvme/pci: Fix write and poll queue types
authorKeith Busch <kbusch@kernel.org>
Fri, 6 Dec 2019 16:51:54 +0000 (01:51 +0900)
committerKeith Busch <kbusch@kernel.org>
Fri, 6 Dec 2019 17:52:24 +0000 (02:52 +0900)
commit3f68baf706ec68c4120867c25bc439c845fe3e17
treed4b8d28a41a1692e28c42911b22d2c14a1a63bb7
parentf6c4d97b0d82ed1240690c91f06214018b1531ef
nvme/pci: Fix write and poll queue types

The number of poll or write queues should never be negative. Use unsigned
types so that it's not possible to break have the driver not allocate
any queues.

Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/pci.c