Re: [PATCH net-next] xfrm: policy: remove set but not used variable 'priority'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux