projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8157ff
)
nvme: else following return is not needed
author
Edmund Nadolski
<edmund.nadolski@intel.com>
Mon, 25 Nov 2019 16:06:12 +0000
(09:06 -0700)
committer
Keith Busch
<kbusch@kernel.org>
Tue, 26 Nov 2019 17:48:33 +0000
(
02:48
+0900)
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>
drivers/nvme/host/pci.c
patch
|
blob
|
history
diff --git
a/drivers/nvme/host/pci.c
b/drivers/nvme/host/pci.c
index dcaad5831cee7aaef48758a332ae049d06ef9991..9d307593b94f8927a8ead231df315eced947b4d7 100644
(file)
--- 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;