diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2021-01-14 22:15:25 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-02-02 10:26:11 +0100 |
commit | 60141aa08c08a43f3d22626b3a2532106a90a191 (patch) | |
tree | 1d5f59be401464d8c03772c27d4d13107a015641 /drivers/nvme/host | |
parent | nvme-tcp: fix wrong setting of request iov_iter (diff) | |
download | linux-60141aa08c08a43f3d22626b3a2532106a90a191.tar.xz linux-60141aa08c08a43f3d22626b3a2532106a90a191.zip |
nvme-tcp: get rid of unused helper function
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host')
-rw-r--r-- | drivers/nvme/host/tcp.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c index 4367923d03e4..f2f3471faed3 100644 --- a/drivers/nvme/host/tcp.c +++ b/drivers/nvme/host/tcp.c @@ -206,11 +206,6 @@ static inline size_t nvme_tcp_req_cur_length(struct nvme_tcp_request *req) req->pdu_len - req->pdu_sent); } -static inline size_t nvme_tcp_req_offset(struct nvme_tcp_request *req) -{ - return req->iter.iov_offset; -} - static inline size_t nvme_tcp_pdu_data_left(struct nvme_tcp_request *req) { return rq_data_dir(blk_mq_rq_from_pdu(req)) == WRITE ? |