[U-Boot] [PATCH 3/3] nvme: Remove dead codes in nvme_setup_io_queues()
Bin Meng
bmeng.cn at gmail.com
Sat Sep 2 15:15:37 UTC 2017
Execution cannot reach this statement: "nr_io_queues = result;"
Reported-by: Coverity (CID: 166731)
Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---
drivers/nvme/nvme.c | 3 ---
1 file changed, 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 */
--
2.9.2
More information about the U-Boot
mailing list