mlx4: remove unused field high_prios
authorEugenia Emantayev <eugenia@mellanox.co.il>
Tue, 14 Feb 2012 06:37:41 +0000 (06:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Feb 2012 19:11:58 +0000 (14:11 -0500)
Remove unnecessary field high_prios from mlx4_steer struct and initialization

Signed-off-by: Eugenia Emantayev <eugenia@mellanox.co.il>
Reviewed-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h

index 678558b502fc31e506633e0713805f58c8676108..0809b7c3905c8263448f24402f1580bf12f66080 100644 (file)
@@ -1543,13 +1543,11 @@ static int mlx4_init_steering(struct mlx4_dev *dev)
        if (!priv->steer)
                return -ENOMEM;
 
-       for (i = 0; i < num_entries; i++) {
+       for (i = 0; i < num_entries; i++)
                for (j = 0; j < MLX4_NUM_STEERS; j++) {
                        INIT_LIST_HEAD(&priv->steer[i].promisc_qps[j]);
                        INIT_LIST_HEAD(&priv->steer[i].steer_entries[j]);
                }
-               INIT_LIST_HEAD(&priv->steer[i].high_prios);
-       }
        return 0;
 }
 
index c92269f8c0570a5b7e6d374beb7ffb9f48e79877..276c7f72bd83360d696039f33478c42c919367d5 100644 (file)
@@ -703,7 +703,6 @@ struct mlx4_msix_ctl {
 struct mlx4_steer {
        struct list_head promisc_qps[MLX4_NUM_STEERS];
        struct list_head steer_entries[MLX4_NUM_STEERS];
-       struct list_head high_prios;
 };
 
 struct mlx4_priv {