mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 00:22:00 +02:00
net: sched: simplify code in mall_reoffload
such expression: if (err) return err; return 0; can simplify to: return err; Signed-off-by: William Dean <williamsukatube@163.com> Link: https://lore.kernel.org/r/20220917063556.2673-1-williamsukatube@163.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
3342a10f5a
commit
2801f30e2c
|
|
@ -313,10 +313,7 @@ static int mall_reoffload(struct tcf_proto *tp, bool add, flow_setup_cb_t *cb,
|
|||
tc_cleanup_offload_action(&cls_mall.rule->action);
|
||||
kfree(cls_mall.rule);
|
||||
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
return 0;
|
||||
return err;
|
||||
}
|
||||
|
||||
static void mall_stats_hw_filter(struct tcf_proto *tp,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user