]> Pileus Git - ~andy/linux/blobdiff - drivers/net/ethernet/mellanox/mlx4/mcg.c
net/mlx4: Address build warnings on set but not used variables
[~andy/linux] / drivers / net / ethernet / mellanox / mlx4 / mcg.c
index 4799e824052f2a3e88a32ce4812c87ef5e6eed3b..f4a8f98e402a0027182608455cc5ce7a62f7db2f 100644 (file)
@@ -357,7 +357,6 @@ static int add_promisc_qp(struct mlx4_dev *dev, u8 port,
        u32 prot;
        int i;
        bool found;
-       int last_index;
        int err;
        struct mlx4_priv *priv = mlx4_priv(dev);
 
@@ -419,7 +418,6 @@ static int add_promisc_qp(struct mlx4_dev *dev, u8 port,
                        if (err)
                                goto out_mailbox;
                }
-               last_index = entry->index;
        }
 
        /* add the new qpn to list of promisc qps */