mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 15:01:44 +00:00
net: stmmac: simplify the return tc_delete_knode()
Simplify the return expression. Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c7dd222053
commit
ec73c31dfb
1 changed files with 2 additions and 8 deletions
|
@ -209,17 +209,11 @@ err_unfill:
|
||||||
static int tc_delete_knode(struct stmmac_priv *priv,
|
static int tc_delete_knode(struct stmmac_priv *priv,
|
||||||
struct tc_cls_u32_offload *cls)
|
struct tc_cls_u32_offload *cls)
|
||||||
{
|
{
|
||||||
int ret;
|
|
||||||
|
|
||||||
/* Set entry and fragments as not used */
|
/* Set entry and fragments as not used */
|
||||||
tc_unfill_entry(priv, cls);
|
tc_unfill_entry(priv, cls);
|
||||||
|
|
||||||
ret = stmmac_rxp_config(priv, priv->hw->pcsr, priv->tc_entries,
|
return stmmac_rxp_config(priv, priv->hw->pcsr, priv->tc_entries,
|
||||||
priv->tc_entries_max);
|
priv->tc_entries_max);
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tc_setup_cls_u32(struct stmmac_priv *priv,
|
static int tc_setup_cls_u32(struct stmmac_priv *priv,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue