aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme
diff options
context:
space:
mode:
authorEdmund Nadolski <edmund.nadolski@intel.com>2019-11-25 09:06:12 -0700
committerKeith Busch <kbusch@kernel.org>2019-11-27 02:48:33 +0900
commitc80b36cd9576efa861a080b05382856173a02ae9 (patch)
tree7323365a2680e8b4300bce6212a8207977a3c54f /drivers/nvme
parentnvme: add error message on mismatching controller ids (diff)
downloadlinux-dev-c80b36cd9576efa861a080b05382856173a02ae9.tar.xz
linux-dev-c80b36cd9576efa861a080b05382856173a02ae9.zip
nvme: else following return is not needed
Remove unnecessary keyword in nvme_create_queue(). Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Edmund Nadolski <edmund.nadolski@intel.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/nvme')
-rw-r--r--drivers/nvme/host/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
index dcaad5831cee..9d307593b94f 100644
--- a/drivers/nvme/host/pci.c
+++ b/drivers/nvme/host/pci.c
@@ -1549,7 +1549,7 @@ static int nvme_create_queue(struct nvme_queue *nvmeq, int qid, bool polled)
result = adapter_alloc_sq(dev, qid, nvmeq);
if (result < 0)
return result;
- else if (result)
+ if (result)
goto release_cq;
nvmeq->cq_vector = vector;