From: Bin Meng Date: Sat, 2 Sep 2017 15:15:37 +0000 (-0700) Subject: nvme: Remove dead codes in nvme_setup_io_queues() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=9e18eae2760d20f04f97ce190036e0c6ee67e43d;p=u-boot.git 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 Reviewed-by: Tom Rini --- 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 */