Skip to content

Commit aae6715

Browse files
wenxuSaeed Mahameed
authored andcommitted
net/mlx5e: Fix unnecessary flow_block_cb_is_busy call
When call flow_block_cb_is_busy. The indr_priv is guaranteed to NULL ptr. So there is no need to call flow_bock_cb_is_busy. Fixes: 0d4fd02 ("net: flow_offload: add flow_block_cb_is_busy() and use it") Signed-off-by: wenxu <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 79ce39b commit aae6715

File tree

1 file changed

+0
-4
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+0
-4
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_rep.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -722,10 +722,6 @@ mlx5e_rep_indr_setup_tc_block(struct net_device *netdev,
722722
if (indr_priv)
723723
return -EEXIST;
724724

725-
if (flow_block_cb_is_busy(mlx5e_rep_indr_setup_block_cb,
726-
indr_priv, &mlx5e_block_cb_list))
727-
return -EBUSY;
728-
729725
indr_priv = kmalloc(sizeof(*indr_priv), GFP_KERNEL);
730726
if (!indr_priv)
731727
return -ENOMEM;

0 commit comments

Comments
 (0)