Skip to contentSkip to conversation

nvme:Make the function nvme_submit_iod void

PATCH New Nicholas Krause 1 participant 1 message Jul 2, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvme:Make the function nvme_submit_iod void

This makes the function nvme_submit_iod void due to always completing successfully without any non recoverable errors ever time this function is called.

Signed-off-by Nicholas Krause <xerofoify at gmail.com>
---
 drivers/block/nvme-core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/block/nvme-core.c +1 -3
index 34338d7..b9f6c8f 100644
@@ -788,7 +788,7 @@ static void nvme_submit_flush(struct nvme_queue *nvmeq, struct nvme_ns *ns,
 	writel(nvmeq->sq_tail, nvmeq->q_db);
 }
 
-static int nvme_submit_iod(struct nvme_queue *nvmeq, struct nvme_iod *iod,
+static void nvme_submit_iod(struct nvme_queue *nvmeq, struct nvme_iod *iod,
 							struct nvme_ns *ns)
 {
 	struct request *req = iod_get_private(iod);
@@ -838,8 +838,6 @@ static int nvme_submit_iod(struct nvme_queue *nvmeq, struct nvme_iod *iod,
 	if (++nvmeq->sq_tail == nvmeq->q_depth)
 		nvmeq->sq_tail = 0;
 	writel(nvmeq->sq_tail, nvmeq->q_db);
-
-	return 0;
 }
 
 /*
Signature · 1 line
2.1.4