IB/mlx5: Removed not used parameters
authorAviad Yehezkel <aviadye@mellanox.com>
Wed, 31 Jan 2018 13:07:33 +0000 (15:07 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 7 Mar 2018 06:05:36 +0000 (22:05 -0800)
Signed-off-by: Aviad Yehezkel <aviadye@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Acked-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/qp.c

index ee55d7d645549e16a4fa3a243c8e307e31f7ad12..23511638fbbcdc8f657155adb8353d6ba350e5bc 100644 (file)
@@ -4585,8 +4585,6 @@ int mlx5_ib_stage_init_init(struct mlx5_ib_dev *dev)
                goto err_free_port;
 
        if (!mlx5_core_mp_enabled(mdev)) {
-               int i;
-
                for (i = 1; i <= dev->num_ports; i++) {
                        err = get_port_caps(dev, i);
                        if (err)
index 5663530ea5fd8bf43a24501be97f98cb7cd5f126..0e67e3682bca18ee5e00b06c49251271991d4ab7 100644 (file)
@@ -2153,7 +2153,6 @@ static struct ib_qp *mlx5_ib_create_dct(struct ib_pd *pd,
                                        struct ib_qp_init_attr *attr,
                                        struct mlx5_ib_create_qp *ucmd)
 {
-       struct mlx5_ib_dev *dev;
        struct mlx5_ib_qp *qp;
        int err = 0;
        u32 uidx = MLX5_IB_DEFAULT_UIDX;
@@ -2162,8 +2161,6 @@ static struct ib_qp *mlx5_ib_create_dct(struct ib_pd *pd,
        if (!attr->srq || !attr->recv_cq)
                return ERR_PTR(-EINVAL);
 
-       dev = to_mdev(pd->device);
-
        err = get_qp_user_index(to_mucontext(pd->uobject->context),
                                ucmd, sizeof(*ucmd), &uidx);
        if (err)