Commit 2534f14a authored by Julia Lawall's avatar Julia Lawall Committed by David S. Miller
Browse files

net/mlx5e: drop useless LIST_HEAD

Drop LIST_HEAD where the variable it declares is never used.

These became useless in 244cd96a ("net_sched: remove list_head
from tc_action")

The semantic patch that fixes this problem is as follows:

// <smpl>
identifier x;
  ... when != x
// </smpl>

Fixes: 244cd96a

 ("net_sched: remove list_head from tc_action")
Signed-off-by: default avatarJulia Lawall <>
Reviewed-by: default avatarLeon Romanovsky <>
Signed-off-by: default avatarDavid S. Miller <>
parent 5d1f7354
......@@ -2183,7 +2183,6 @@ static bool modify_header_match_supported(struct mlx5_flow_spec *spec,
const struct tc_action *a;
bool modify_ip_header;
u8 htype, ip_proto;
void *headers_v;
u16 ethertype;
......@@ -2272,7 +2271,6 @@ static int parse_tc_nic_actions(struct mlx5e_priv *priv, struct tcf_exts *exts,
struct mlx5_nic_flow_attr *attr = flow->nic_attr;
const struct tc_action *a;
u32 action = 0;
int err, i;
......@@ -2511,7 +2509,6 @@ static int parse_tc_fdb_actions(struct mlx5e_priv *priv, struct tcf_exts *exts,
struct mlx5e_rep_priv *rpriv = priv->ppriv;
struct ip_tunnel_info *info = NULL;
const struct tc_action *a;
bool encap = false;
u32 action = 0;
int err, i;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment