nvme: Remove dead codes in nvme_setup_io_queues()
authorBin Meng <bmeng.cn@gmail.com>
Sat, 2 Sep 2017 15:15:37 +0000 (08:15 -0700)
committerTom 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

index 59d54eb93ef6071b910d16b41119079651726694..1c3519ba7440daaa79bd8313c607bdfa410fa012 100644 (file)
@@ -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 */