summaryrefslogtreecommitdiff
path: root/drivers/nvme
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2017-09-02 08:15:37 -0700
committerTom Rini <trini@konsulko.com>2017-09-03 15:30:34 -0400
commit9e18eae2760d20f04f97ce190036e0c6ee67e43d (patch)
treeff45fb51419af40c57336beee9f6955b2907f557 /drivers/nvme
parent52a5690efb034c16e1a81b4124c55aa27e3e0138 (diff)
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 <bmeng.cn@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/nvme.c3
1 files changed, 0 insertions, 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 */