Skip to content

Commit 5091b35

Browse files
author
Roland Dreier
committed
Merge branches 'cma', 'misc', 'mlx4' and 'nes' into for-linus
4 parents ae2d929 + 3e340c0 + 7bd9129 + eadde3a commit 5091b35

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

drivers/infiniband/core/cm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3693,7 +3693,7 @@ static void cm_add_one(struct ib_device *ib_device)
36933693
cm_dev->device = device_create(&cm_class, &ib_device->dev,
36943694
MKDEV(0, 0), NULL,
36953695
"%s", ib_device->name);
3696-
if (!cm_dev->device) {
3696+
if (IS_ERR(cm_dev->device)) {
36973697
kfree(cm_dev);
36983698
return;
36993699
}

drivers/infiniband/hw/mlx4/mr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ struct ib_fast_reg_page_list *mlx4_ib_alloc_fast_reg_page_list(struct ib_device
238238
mfrpl->mapped_page_list = dma_alloc_coherent(&dev->dev->pdev->dev,
239239
size, &mfrpl->map,
240240
GFP_KERNEL);
241-
if (!mfrpl->ibfrpl.page_list)
241+
if (!mfrpl->mapped_page_list)
242242
goto err_free;
243243

244244
WARN_ON(mfrpl->map & 0x3f);

drivers/infiniband/hw/nes/nes_verbs.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2820,11 +2820,10 @@ static int nes_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
28202820
attr->cap.max_send_wr = nesqp->hwqp.sq_size;
28212821
attr->cap.max_recv_wr = nesqp->hwqp.rq_size;
28222822
attr->cap.max_recv_sge = 1;
2823-
if (nes_drv_opt & NES_DRV_OPT_NO_INLINE_DATA) {
2824-
init_attr->cap.max_inline_data = 0;
2825-
} else {
2826-
init_attr->cap.max_inline_data = 64;
2827-
}
2823+
if (nes_drv_opt & NES_DRV_OPT_NO_INLINE_DATA)
2824+
attr->cap.max_inline_data = 0;
2825+
else
2826+
attr->cap.max_inline_data = 64;
28282827

28292828
init_attr->event_handler = nesqp->ibqp.event_handler;
28302829
init_attr->qp_context = nesqp->ibqp.qp_context;

0 commit comments

Comments
 (0)