summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2017-09-02 15:15:37 (GMT)
committerTom Rini <trini@konsulko.com>2017-09-03 19:30:34 (GMT)
commit9e18eae2760d20f04f97ce190036e0c6ee67e43d (patch)
treeff45fb51419af40c57336beee9f6955b2907f557
parent52a5690efb034c16e1a81b4124c55aa27e3e0138 (diff)
downloadu-boot-9e18eae2760d20f04f97ce190036e0c6ee67e43d.tar.xz
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>
-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 59d54eb..1c3519b 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 */