mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-16 12:56:43 +07:00
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: 0d4fd02e71
("net: flow_offload: add flow_block_cb_is_busy() and use it")
Signed-off-by: wenxu <wenxu@ucloud.cn>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
parent
79ce39be1d
commit
aae67158da
@ -722,10 +722,6 @@ mlx5e_rep_indr_setup_tc_block(struct net_device *netdev,
|
|||||||
if (indr_priv)
|
if (indr_priv)
|
||||||
return -EEXIST;
|
return -EEXIST;
|
||||||
|
|
||||||
if (flow_block_cb_is_busy(mlx5e_rep_indr_setup_block_cb,
|
|
||||||
indr_priv, &mlx5e_block_cb_list))
|
|
||||||
return -EBUSY;
|
|
||||||
|
|
||||||
indr_priv = kmalloc(sizeof(*indr_priv), GFP_KERNEL);
|
indr_priv = kmalloc(sizeof(*indr_priv), GFP_KERNEL);
|
||||||
if (!indr_priv)
|
if (!indr_priv)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
Loading…
Reference in New Issue
Block a user