diff options
author | Andi Shyti <andi@etezian.org> | 2013-07-22 08:59:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-24 18:46:27 -0400 |
commit | 59ea52dc461ebb05b78545064604d92faf8bb16f (patch) | |
tree | f7dee0b1591713ba1d47eebe7bf9da86396e9cd1 /net/9p/trans_rdma.c | |
parent | 9812a9d62a582afb2905e15e51866489115d0765 (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/trans_rdma.c')
-rw-r--r-- | net/9p/trans_rdma.c | 11 |
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) | |||
588 | return 1; | 588 | return 1; |
589 | } | 589 | } |
590 | 590 | ||
591 | /* A request has been fully flushed without a reply. | ||
592 | * That means we have posted one buffer in excess. | ||
593 | */ | ||
594 | static int rdma_cancelled(struct p9_client *client, struct p9_req_t *req) | ||
595 | { | ||
596 | struct p9_trans_rdma *rdma = client->trans; | ||
597 | |||
598 | atomic_inc(&rdma->excess_rc); | ||
599 | return 0; | ||
600 | } | ||
601 | |||
602 | /** | 591 | /** |
603 | * trans_create_rdma - Transport method for creating atransport instance | 592 | * trans_create_rdma - Transport method for creating atransport instance |
604 | * @client: client instance | 593 | * @client: client instance |