diff mbox series

[for-next,8/9] RDMA/hns: Remove the warning by checkpatch.pl

Message ID 1550809268-125729-9-git-send-email-oulijun@huawei.com (mailing list archive)
State Superseded
Headers show
Series Hns updates | expand

Commit Message

Lijun Ou Feb. 22, 2019, 4:21 a.m. UTC
Here fixes the check warning by checkpatch scripts.

Fixes: 3856ec552700 ("RDMA/hns: Use for_each_sg_dma_page iterator on umem SGL")
Signed-off-by: Lijun Ou <oulijun@huawei.com>
---
 drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
index beb4691..cf09c2e 100644
--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
@@ -2101,7 +2101,8 @@  static int set_mtpt_pbl(struct hns_roce_v2_mpt_entry *mpt_entry,
 		return -ENOMEM;
 
 	i = 0;
-	for_each_sg_dma_page(mr->umem->sg_head.sgl, &sg_iter, mr->umem->nmap, 0) {
+	for_each_sg_dma_page(mr->umem->sg_head.sgl, &sg_iter, mr->umem->nmap,
+			     0) {
 		page_addr = sg_page_iter_dma_address(&sg_iter);
 		pages[i] = page_addr >> 6;
 
@@ -5459,8 +5460,8 @@  static int hns_roce_mhop_alloc_eq(struct hns_roce_dev *hr_dev,
 						* eq->eqe_size;
 				}
 				eq->buf[idx] = dma_alloc_coherent(dev, size,
-								  &(eq->buf_dma[idx]),
-								  GFP_KERNEL);
+							    &(eq->buf_dma[idx]),
+							    GFP_KERNEL);
 				if (!eq->buf[idx])
 					goto err_dma_alloc_buf;