nvme-tcp: get rid of unused helper function
authorSagi Grimberg <sagi@grimberg.me>
Thu, 14 Jan 2021 21:15:25 +0000 (13:15 -0800)
committerChristoph Hellwig <hch@lst.de>
Tue, 2 Feb 2021 09:26:11 +0000 (10:26 +0100)
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/tcp.c

index 4367923d03e449611afa416a9b6e35393a1e69b2..f2f3471faed3f58dc8dfc10a24680309b3076a45 100644 (file)
@@ -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 ?