IB/core: Remove ib_sg_dma_address() and ib_sg_dma_len()
Keeping single line wrapper functions is not useful. Hence remove the ib_sg_dma_address() and ib_sg_dma_len() functions. This patch does not change any functionality. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:

committed by
Jason Gunthorpe

父節點
6141f8fa5b
當前提交
a163afc885
@@ -108,8 +108,8 @@ static int rds_ib_map_fmr(struct rds_ib_device *rds_ibdev,
|
||||
page_cnt = 0;
|
||||
|
||||
for (i = 0; i < sg_dma_len; ++i) {
|
||||
unsigned int dma_len = ib_sg_dma_len(dev, &scat[i]);
|
||||
u64 dma_addr = ib_sg_dma_address(dev, &scat[i]);
|
||||
unsigned int dma_len = sg_dma_len(&scat[i]);
|
||||
u64 dma_addr = sg_dma_address(&scat[i]);
|
||||
|
||||
if (dma_addr & ~PAGE_MASK) {
|
||||
if (i > 0) {
|
||||
@@ -148,8 +148,8 @@ static int rds_ib_map_fmr(struct rds_ib_device *rds_ibdev,
|
||||
|
||||
page_cnt = 0;
|
||||
for (i = 0; i < sg_dma_len; ++i) {
|
||||
unsigned int dma_len = ib_sg_dma_len(dev, &scat[i]);
|
||||
u64 dma_addr = ib_sg_dma_address(dev, &scat[i]);
|
||||
unsigned int dma_len = sg_dma_len(&scat[i]);
|
||||
u64 dma_addr = sg_dma_address(&scat[i]);
|
||||
|
||||
for (j = 0; j < dma_len; j += PAGE_SIZE)
|
||||
dma_pages[page_cnt++] =
|
||||
|
Reference in New Issue
Block a user