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 <mail@david-bauer.net>
This commit is contained in:
3
policy.c
3
policy.c
@@ -115,9 +115,6 @@ find_better_candidate(struct sta_info *si_ref, struct uevent *ev, uint32_t requi
|
|||||||
if (!reasons)
|
if (!reasons)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (is_better_candidate(si, si_ref))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (!(reasons & required_criteria))
|
if (!(reasons & required_criteria))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user