From 2ccb99e672d3dc43d476bfcc001d90196f33f180 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Sat, 25 Dec 2021 17:36:39 +0100 Subject: [PATCH] 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 --- policy.c | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.30.2