IB/srp: Remove srp_finish_mapping
authorSagi Grimberg <sagig@mellanox.com>
Tue, 13 Oct 2015 16:11:40 +0000 (19:11 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 29 Oct 2015 02:27:19 +0000 (22:27 -0400)
No callers left, remove it.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Tested-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srp/ib_srp.c

index f2c8dca..cf54e23 100644 (file)
@@ -1368,16 +1368,6 @@ static int srp_map_finish_fr(struct srp_map_state *state,
        return n;
 }
 
-static int srp_finish_mapping(struct srp_map_state *state,
-                             struct srp_rdma_ch *ch)
-{
-       struct srp_target_port *target = ch->target;
-       struct srp_device *dev = target->srp_host->srp_dev;
-
-       return dev->use_fast_reg ? srp_map_finish_fr(state, ch) :
-                                  srp_map_finish_fmr(state, ch);
-}
-
 static int srp_map_sg_entry(struct srp_map_state *state,
                            struct srp_rdma_ch *ch,
                            struct scatterlist *sg, int sg_index)