net: trans_rdma: remove unused function
authorAndi Shyti <andi@etezian.org>
Mon, 22 Jul 2013 12:59:16 +0000 (14:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jul 2013 22:46:27 +0000 (15:46 -0700)
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>
net/9p/trans_rdma.c

index 928f2bb9bf8d5d4d43d6324c3ea989a9daf12728..8f68df5d29731cf23b6de1bbee5284c904006c93 100644 (file)
@@ -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