diff options
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/cq.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/cq.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/cq.c b/drivers/net/ethernet/mellanox/mlx4/cq.c index 004e4231af67..22fcbe78311c 100644 --- a/drivers/net/ethernet/mellanox/mlx4/cq.c +++ b/drivers/net/ethernet/mellanox/mlx4/cq.c | |||
@@ -128,8 +128,6 @@ int mlx4_cq_modify(struct mlx4_dev *dev, struct mlx4_cq *cq, | |||
128 | return PTR_ERR(mailbox); | 128 | return PTR_ERR(mailbox); |
129 | 129 | ||
130 | cq_context = mailbox->buf; | 130 | cq_context = mailbox->buf; |
131 | memset(cq_context, 0, sizeof *cq_context); | ||
132 | |||
133 | cq_context->cq_max_count = cpu_to_be16(count); | 131 | cq_context->cq_max_count = cpu_to_be16(count); |
134 | cq_context->cq_period = cpu_to_be16(period); | 132 | cq_context->cq_period = cpu_to_be16(period); |
135 | 133 | ||
@@ -153,8 +151,6 @@ int mlx4_cq_resize(struct mlx4_dev *dev, struct mlx4_cq *cq, | |||
153 | return PTR_ERR(mailbox); | 151 | return PTR_ERR(mailbox); |
154 | 152 | ||
155 | cq_context = mailbox->buf; | 153 | cq_context = mailbox->buf; |
156 | memset(cq_context, 0, sizeof *cq_context); | ||
157 | |||
158 | cq_context->logsize_usrpage = cpu_to_be32(ilog2(entries) << 24); | 154 | cq_context->logsize_usrpage = cpu_to_be32(ilog2(entries) << 24); |
159 | cq_context->log_page_size = mtt->page_shift - 12; | 155 | cq_context->log_page_size = mtt->page_shift - 12; |
160 | mtt_addr = mlx4_mtt_addr(dev, mtt); | 156 | mtt_addr = mlx4_mtt_addr(dev, mtt); |
@@ -274,8 +270,6 @@ int mlx4_cq_alloc(struct mlx4_dev *dev, int nent, | |||
274 | } | 270 | } |
275 | 271 | ||
276 | cq_context = mailbox->buf; | 272 | cq_context = mailbox->buf; |
277 | memset(cq_context, 0, sizeof *cq_context); | ||
278 | |||
279 | cq_context->flags = cpu_to_be32(!!collapsed << 18); | 273 | cq_context->flags = cpu_to_be32(!!collapsed << 18); |
280 | if (timestamp_en) | 274 | if (timestamp_en) |
281 | cq_context->flags |= cpu_to_be32(1 << 19); | 275 | cq_context->flags |= cpu_to_be32(1 << 19); |