IB/srp: Move common code into the caller
authorBart Van Assche <[email protected]>
Fri, 22 Apr 2016 21:15:04 +0000 (14:15 -0700)
committerDoug Ledford <[email protected]>
Thu, 12 May 2016 18:18:57 +0000 (14:18 -0400)
Signed-off-by: Bart Van Assche <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Sagi Grimberg <[email protected]>
Cc: Laurence Oberman <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/infiniband/ulp/srp/ib_srp.c

index ce2c379272cfb504a569f0f938e0c696814107e5..427dee3a3ab04f9a4d372177ed5306dbfd2d0bd9 100644 (file)
@@ -1409,7 +1409,6 @@ static int srp_map_sg_fmr(struct srp_map_state *state, struct srp_rdma_ch *ch,
        struct scatterlist *sg;
        int i, ret;
 
-       state->desc = req->indirect_desc;
        state->pages = req->map_page;
        state->fmr.next = req->fmr_list;
        state->fmr.end = req->fmr_list + ch->target->cmd_sg_cnt;