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

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.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 3342a10f
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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;
}

static void mall_stats_hw_filter(struct tcf_proto *tp,