Commit 2801f30e authored by William Dean's avatar William Dean Committed by Jakub Kicinski

net: sched: simplify code in mall_reoffload

such expression:
	if (err)
		return err;
	return 0;
can simplify to:
	return err;
Signed-off-by: default avatarWilliam Dean <williamsukatube@163.com>
Link: https://lore.kernel.org/r/20220917063556.2673-1-williamsukatube@163.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 3342a10f
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment