summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/mlx4/qp.c
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2017-08-17 15:50:34 +0300
committerDoug Ledford <dledford@redhat.com>2017-08-24 23:27:10 +0300
commitfba02e6cb775078bc0bdf207197e0a44b1f85aca (patch)
tree8bdd26fdc24cf07244f41297629d613fee8e5965 /drivers/infiniband/hw/mlx4/qp.c
parent89caa0538ecf2114e1badbb1e75120d25bec985e (diff)
downloadlinux-fba02e6cb775078bc0bdf207197e0a44b1f85aca.tar.xz
RDMA/mlx4: Don't use uninitialized variable
Avoid usage of uninitialized variable. Fixes: 3078f5f1bd8b ("IB/mlx4: Add support for RSS QP") Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/qp.c')
-rw-r--r--drivers/infiniband/hw/mlx4/qp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c
index b40d50c643e1..f7ee1792ba6d 100644
--- a/drivers/infiniband/hw/mlx4/qp.c
+++ b/drivers/infiniband/hw/mlx4/qp.c
@@ -2027,8 +2027,8 @@ static u8 gid_type_to_qpc(enum ib_gid_type gid_type)
*/
static int bringup_rss_rwqs(struct ib_rwq_ind_table *ind_tbl, u8 port_num)
{
+ int err = 0;
int i;
- int err;
for (i = 0; i < (1 << ind_tbl->log_ind_tbl_size); i++) {
struct ib_wq *ibwq = ind_tbl->ind_tbl[i];