Skip to content

Commit

Permalink
net: trans_rdma: remove unused function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Shyti authored and David S. Miller committed Jul 24, 2013
1 parent 9812a9d commit 59ea52d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions net/9p/trans_rdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59ea52d

Please sign in to comment.