path: root/net/9p
diff options
authorAndi Shyti <andi@etezian.org>2013-07-22 14:59:16 +0200
committerDavid S. Miller <davem@davemloft.net>2013-07-24 15:46:27 -0700
commit59ea52dc461ebb05b78545064604d92faf8bb16f (patch)
treef7dee0b1591713ba1d47eebe7bf9da86396e9cd1 /net/9p
parent9812a9d62a582afb2905e15e51866489115d0765 (diff)
net: trans_rdma: remove unused function
This patch gets rid of the following warning: net/9p/trans_rdma.c:594:12: warning: ‘rdma_cancelled’ defined but not used [-Wunused-function] static int rdma_cancelled(struct p9_client *client, struct p9_req_t *req) The rdma_cancelled function is not called anywhere in the kernel Signed-off-by: Andi Shyti <andi@etezian.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/9p')
1 files changed, 0 insertions, 11 deletions
diff --git a/net/9p/trans_rdma.c b/net/9p/trans_rdma.c
index 928f2bb9bf8d..8f68df5d2973 100644
--- a/net/9p/trans_rdma.c
+++ b/net/9p/trans_rdma.c
@@ -588,17 +588,6 @@ static int rdma_cancel(struct p9_client *client, struct p9_req_t *req)
return 1;
-/* A request has been fully flushed without a reply.
- * That means we have posted one buffer in excess.
- */
-static int rdma_cancelled(struct p9_client *client, struct p9_req_t *req)
- struct p9_trans_rdma *rdma = client->trans;
- atomic_inc(&rdma->excess_rc);
- return 0;
* trans_create_rdma - Transport method for creating atransport instance
* @client: client instance

Privacy Policy