From: David Bauer Date: Sat, 25 Dec 2021 16:36:39 +0000 (+0100) Subject: policy: remove redundant candidate evaluation X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2ccb99e672d3dc43d476bfcc001d90196f33f180;p=project%2Fusteer.git policy: remove redundant candidate evaluation It is not necessary to check if the candidate is not considered reverse-better, as this is already done inside is_better_candidate for all relevant criteria. Signed-off-by: David Bauer --- diff --git a/policy.c b/policy.c index 04a1b3c..95c2843 100644 --- a/policy.c +++ b/policy.c @@ -115,9 +115,6 @@ find_better_candidate(struct sta_info *si_ref, struct uevent *ev, uint32_t requi if (!reasons) continue; - if (is_better_candidate(si, si_ref)) - continue; - if (!(reasons & required_criteria)) continue;