diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-11-24 14:03:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-26 04:28:28 +0300 |
commit | eafa6abd99eadb8971c01a4c591295ac4d8d0a9b (patch) | |
tree | 1abbf18911afe68b9a5c9ff2d8fe132e5e0ec9e7 | |
parent | 0ebc5b62a35611a8478d199429c84fa2c708f627 (diff) | |
download | linux-eafa6abd99eadb8971c01a4c591295ac4d8d0a9b.tar.xz |
net/mlx5: remove a duplicate condition
We verified that MLX5_FLOW_CONTEXT_ACTION_COUNT was set on the first
line of the function so we don't need to check again here.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c index 68ec4ea25d50..a263d8904a4c 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c @@ -1307,8 +1307,7 @@ static bool counter_is_valid(struct mlx5_fc *counter, u32 action) return false; return (action & (MLX5_FLOW_CONTEXT_ACTION_DROP | - MLX5_FLOW_CONTEXT_ACTION_FWD_DEST)) && - (action & MLX5_FLOW_CONTEXT_ACTION_COUNT); + MLX5_FLOW_CONTEXT_ACTION_FWD_DEST)); } static bool dest_is_valid(struct mlx5_flow_destination *dest, |