projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52a5690
)
nvme: Remove dead codes in nvme_setup_io_queues()
author
Bin Meng
<bmeng.cn@gmail.com>
Sat, 2 Sep 2017 15:15:37 +0000
(08:15 -0700)
committer
Tom Rini
<trini@konsulko.com>
Sun, 3 Sep 2017 19:30:34 +0000
(15:30 -0400)
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>
drivers/nvme/nvme.c
patch
|
blob
|
history
diff --git
a/drivers/nvme/nvme.c
b/drivers/nvme/nvme.c
index 59d54eb93ef6071b910d16b41119079651726694..1c3519ba7440daaa79bd8313c607bdfa410fa012 100644
(file)
--- 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 */