RDMA/cma: Remove unused timeout_ms parameter from cma_resolve_iw_route()
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 11 Oct 2018 14:30:03 +0000 (17:30 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 16 Oct 2018 17:34:01 +0000 (13:34 -0400)
cma_resolve_iw_route() doesn't use timeout_ms parameter, so let's remove it.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c

index 5c7e3bafdd4a08ba1ef04b964237d768d742a002..1156cb911a5cd4193111540c7c486e0fdd696533 100644 (file)
@@ -2751,7 +2751,7 @@ err:
 }
 EXPORT_SYMBOL(rdma_set_ib_path);
 
-static int cma_resolve_iw_route(struct rdma_id_private *id_priv, int timeout_ms)
+static int cma_resolve_iw_route(struct rdma_id_private *id_priv)
 {
        struct cma_work *work;
 
@@ -2867,7 +2867,7 @@ int rdma_resolve_route(struct rdma_cm_id *id, int timeout_ms)
        else if (rdma_protocol_roce(id->device, id->port_num))
                ret = cma_resolve_iboe_route(id_priv);
        else if (rdma_protocol_iwarp(id->device, id->port_num))
-               ret = cma_resolve_iw_route(id_priv, timeout_ms);
+               ret = cma_resolve_iw_route(id_priv);
        else
                ret = -ENOSYS;