YueHaibing <yuehaibing@xxxxxxxxxx> wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > net/xfrm/xfrm_policy.c: In function 'xfrm_policy_lookup_bytype': > net/xfrm/xfrm_policy.c:2079:6: warning: > variable 'priority' set but not used [-Wunused-but-set-variable] > > It not used since commit 6be3b0db6db8 ("xfrm: policy: add inexact policy > search tree infrastructure") Acked-by: Florian Westphal <fw@xxxxxxxxx> Removing this appears correct, the exact policy gets passed to xfrm_policy_eval_candidates where the priority is checked.