Skip to content

Commit 35e725e

Browse files
YueHaibingSaeed Mahameed
authored andcommitted
net/mlx5e: CT: remove set but not used variable 'unnew'
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c: In function mlx5_tc_ct_parse_match: drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c:699:36: warning: variable unnew set but not used [-Wunused-but-set-variable] Fixes: 4c3844d ("net/mlx5e: CT: Introduce connection tracking") Reported-by: Hulk Robot <[email protected]> Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent e0cb8af commit 35e725e

File tree

1 file changed

+1
-2
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/en

1 file changed

+1
-2
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ mlx5_tc_ct_parse_match(struct mlx5e_priv *priv,
696696
{
697697
struct mlx5_tc_ct_priv *ct_priv = mlx5_tc_ct_get_ct_priv(priv);
698698
struct flow_dissector_key_ct *mask, *key;
699-
bool trk, est, untrk, unest, new, unnew;
699+
bool trk, est, untrk, unest, new;
700700
u32 ctstate = 0, ctstate_mask = 0;
701701
u16 ct_state_on, ct_state_off;
702702
u16 ct_state, ct_state_mask;
@@ -739,7 +739,6 @@ mlx5_tc_ct_parse_match(struct mlx5e_priv *priv,
739739
new = ct_state_on & TCA_FLOWER_KEY_CT_FLAGS_NEW;
740740
est = ct_state_on & TCA_FLOWER_KEY_CT_FLAGS_ESTABLISHED;
741741
untrk = ct_state_off & TCA_FLOWER_KEY_CT_FLAGS_TRACKED;
742-
unnew = ct_state_off & TCA_FLOWER_KEY_CT_FLAGS_NEW;
743742
unest = ct_state_off & TCA_FLOWER_KEY_CT_FLAGS_ESTABLISHED;
744743

745744
ctstate |= trk ? MLX5_CT_STATE_TRK_BIT : 0;

0 commit comments

Comments
 (0)