Skip to content

Commit

Permalink
net: sched: simplify code in mall_reoffload
Browse files Browse the repository at this point in the history
such expression:
	if (err)
		return err;
	return 0;
can simplify to:
	return err;

Signed-off-by: William Dean <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
William Dean authored and kuba-moo committed Sep 22, 2022
1 parent 3342a10 commit 2801f30
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions net/sched/cls_matchall.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2801f30

Please sign in to comment.