Skip to content

Commit 2b59787

Browse files
mgurtovoyChristoph Hellwig
authored andcommitted
nvme: remove the unused status argument from nvme_trace_bio_complete
The only used argument in this function is the "req". Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com> Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent 9ceb786 commit 2b59787

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

drivers/nvme/host/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ static inline void nvme_end_req(struct request *req)
330330
req->__sector = nvme_lba_to_sect(req->q->queuedata,
331331
le64_to_cpu(nvme_req(req)->result.u64));
332332

333-
nvme_trace_bio_complete(req, status);
333+
nvme_trace_bio_complete(req);
334334
blk_mq_end_request(req, status);
335335
}
336336

drivers/nvme/host/nvme.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -672,8 +672,7 @@ static inline void nvme_mpath_check_last_path(struct nvme_ns *ns)
672672
kblockd_schedule_work(&head->requeue_work);
673673
}
674674

675-
static inline void nvme_trace_bio_complete(struct request *req,
676-
blk_status_t status)
675+
static inline void nvme_trace_bio_complete(struct request *req)
677676
{
678677
struct nvme_ns *ns = req->q->queuedata;
679678

@@ -728,8 +727,7 @@ static inline void nvme_mpath_clear_ctrl_paths(struct nvme_ctrl *ctrl)
728727
static inline void nvme_mpath_check_last_path(struct nvme_ns *ns)
729728
{
730729
}
731-
static inline void nvme_trace_bio_complete(struct request *req,
732-
blk_status_t status)
730+
static inline void nvme_trace_bio_complete(struct request *req)
733731
{
734732
}
735733
static inline int nvme_mpath_init(struct nvme_ctrl *ctrl,

0 commit comments

Comments
 (0)