net/mlx5e: Remove redundant assignment of counter to null
counter is being initialized before being used. Signed-off-by: Roi Dayan <roid@nvidia.com> Reviewed-by: Maor Dickman <maord@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
parent
c6cfe1137f
commit
97a8d29ae9
@ -1037,7 +1037,7 @@ mlx5e_tc_add_nic_flow(struct mlx5e_priv *priv,
|
||||
struct mlx5e_tc_flow_parse_attr *parse_attr;
|
||||
struct mlx5_flow_attr *attr = flow->attr;
|
||||
struct mlx5_core_dev *dev = priv->mdev;
|
||||
struct mlx5_fc *counter = NULL;
|
||||
struct mlx5_fc *counter;
|
||||
int err;
|
||||
|
||||
parse_attr = attr->parse_attr;
|
||||
@ -1361,9 +1361,9 @@ mlx5e_tc_add_fdb_flow(struct mlx5e_priv *priv,
|
||||
bool vf_tun = false, encap_valid = true;
|
||||
struct net_device *encap_dev = NULL;
|
||||
struct mlx5_esw_flow_attr *esw_attr;
|
||||
struct mlx5_fc *counter = NULL;
|
||||
struct mlx5e_rep_priv *rpriv;
|
||||
struct mlx5e_priv *out_priv;
|
||||
struct mlx5_fc *counter;
|
||||
u32 max_prio, max_chain;
|
||||
int err = 0;
|
||||
int out_index;
|
||||
|
Loading…
x
Reference in New Issue
Block a user