aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2015-04-14 11:08:18 -0400
committerDoug Ledford <dledford@redhat.com>2015-04-15 16:07:13 -0400
commit6847fdeb0bcd2eade5b8183d3d2857c4fd7b70d5 (patch)
tree2dcda0d9348567f1c27ee1b3206d17287e6414ba /drivers/infiniband/ulp
parentd03e61d0366c61f596ada66ab11c217e7f887d15 (diff)
IB/iser: Remove redundant assignments in iser_reg_page_vec
Buffer length was assigned twice, and no reason to set va to io_addr and then add the offset, just set va to io_addr + offset. This patch does not change any functionality. Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Adir Lev <adirl@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r--drivers/infiniband/ulp/iser/iser_memory.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_memory.c b/drivers/infiniband/ulp/iser/iser_memory.c
index 4e0cbbb671cc..cb308650b94a 100644
--- a/drivers/infiniband/ulp/iser/iser_memory.c
+++ b/drivers/infiniband/ulp/iser/iser_memory.c
@@ -392,12 +392,9 @@ int iser_reg_page_vec(struct ib_conn *ib_conn,
392 392
393 mem_reg->lkey = mem->fmr->lkey; 393 mem_reg->lkey = mem->fmr->lkey;
394 mem_reg->rkey = mem->fmr->rkey; 394 mem_reg->rkey = mem->fmr->rkey;
395 mem_reg->len = page_vec->length * SIZE_4K;
396 mem_reg->va = io_addr;
397 mem_reg->mem_h = (void *)mem;
398
399 mem_reg->va += page_vec->offset;
400 mem_reg->len = page_vec->data_size; 395 mem_reg->len = page_vec->data_size;
396 mem_reg->va = io_addr + page_vec->offset;
397 mem_reg->mem_h = (void *)mem;
401 398
402 iser_dbg("PHYSICAL Mem.register, [PHYS p_array: 0x%p, sz: %d, " 399 iser_dbg("PHYSICAL Mem.register, [PHYS p_array: 0x%p, sz: %d, "
403 "entry[0]: (0x%08lx,%ld)] -> " 400 "entry[0]: (0x%08lx,%ld)] -> "