]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: check kstrtoint() return value in queue_count_set()
authorBart Van Assche <bvanassche@acm.org>
Thu, 14 Feb 2019 22:50:54 +0000 (14:50 -0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 20 Feb 2019 14:18:07 +0000 (07:18 -0700)
commita1d770c9b424e1bd086824bb6d1726e6cf5d8587
treef7ab2d70f5aa53586ba11c23442ba06225bfd91d
parentc4bc0d850b937c3e30dcf9a6bdd1850c6456cf9b
nvme-pci: check kstrtoint() return value in queue_count_set()

This patch avoids that the compiler complains about 'ret' being set
but not being used when building with W=1.

Fixes: 32547e3719e0 ("nvme: utilize two queue maps, one for reads and one for writes") # v5.0-rc1
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c