| .. | .. |
|---|
| 54 | 54 | |
|---|
| 55 | 55 | cq = kzalloc_node(sizeof(*cq), GFP_KERNEL, node); |
|---|
| 56 | 56 | if (!cq) { |
|---|
| 57 | | - cq = kzalloc(sizeof(*cq), GFP_KERNEL); |
|---|
| 58 | | - if (!cq) { |
|---|
| 59 | | - en_err(priv, "Failed to allocate CQ structure\n"); |
|---|
| 60 | | - return -ENOMEM; |
|---|
| 61 | | - } |
|---|
| 57 | + en_err(priv, "Failed to allocate CQ structure\n"); |
|---|
| 58 | + return -ENOMEM; |
|---|
| 62 | 59 | } |
|---|
| 63 | 60 | |
|---|
| 64 | 61 | cq->size = entries; |
|---|
| .. | .. |
|---|
| 143 | 140 | cq->mcq.usage = MLX4_RES_USAGE_DRIVER; |
|---|
| 144 | 141 | err = mlx4_cq_alloc(mdev->dev, cq->size, &cq->wqres.mtt, |
|---|
| 145 | 142 | &mdev->priv_uar, cq->wqres.db.dma, &cq->mcq, |
|---|
| 146 | | - cq->vector, 0, timestamp_en); |
|---|
| 143 | + cq->vector, 0, timestamp_en, &cq->wqres.buf, false); |
|---|
| 147 | 144 | if (err) |
|---|
| 148 | 145 | goto free_eq; |
|---|
| 149 | 146 | |
|---|