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:
William Dean 2022-09-17 14:35:56 +08:00 committed by Jakub Kicinski
parent 3342a10f5a
commit 2801f30e2c

View File

@ -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,