Skip to content

Commit

Permalink
nvme: else following return is not needed
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Edmund Nadolski authored and Keith Busch committed Nov 26, 2019
1 parent a8157ff commit c80b36c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvme/host/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c80b36c

Please sign in to comment.