From 9e18eae2760d20f04f97ce190036e0c6ee67e43d Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Sat, 2 Sep 2017 08:15:37 -0700 Subject: [PATCH] nvme: Remove dead codes in nvme_setup_io_queues() Execution cannot reach this statement: "nr_io_queues = result;" Reported-by: Coverity (CID: 166731) Signed-off-by: Bin Meng Reviewed-by: Tom Rini --- drivers/nvme/nvme.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c index 59d54eb93e..1c3519ba74 100644 --- a/drivers/nvme/nvme.c +++ b/drivers/nvme/nvme.c @@ -562,9 +562,6 @@ static int nvme_setup_io_queues(struct nvme_dev *dev) if (result <= 0) return result; - if (result < nr_io_queues) - nr_io_queues = result; - dev->max_qid = nr_io_queues; /* Free previously allocated queues */ -- 2.30.2