Skip to content

Commit 52bb8c6

Browse files
Bart Van Asschedledford
Bart Van Assche
authored andcommitted
IB/srp: Remove an unused argument
Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent 5274612 commit 52bb8c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/infiniband/ulp/srp/ib_srp.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ static int srp_map_finish_fr(struct srp_map_state *state,
13881388

13891389
static int srp_map_sg_entry(struct srp_map_state *state,
13901390
struct srp_rdma_ch *ch,
1391-
struct scatterlist *sg, int sg_index)
1391+
struct scatterlist *sg)
13921392
{
13931393
struct srp_target_port *target = ch->target;
13941394
struct srp_device *dev = target->srp_host->srp_dev;
@@ -1441,7 +1441,7 @@ static int srp_map_sg_fmr(struct srp_map_state *state, struct srp_rdma_ch *ch,
14411441
state->fmr.end = req->fmr_list + ch->target->mr_per_cmd;
14421442

14431443
for_each_sg(scat, sg, count, i) {
1444-
ret = srp_map_sg_entry(state, ch, sg, i);
1444+
ret = srp_map_sg_entry(state, ch, sg);
14451445
if (ret)
14461446
return ret;
14471447
}

0 commit comments

Comments
 (0)