net: xfrm: drop check of pols[0] for the second time
authorJean Sacren <sakiwit@gmail.com>
Tue, 30 Nov 2021 07:03:12 +0000 (00:03 -0700)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 1 Dec 2021 08:23:01 +0000 (09:23 +0100)
commitac1077e92825bb0ffeee8550a41771df772214ce
treedf991243f6413799e64d01db09289d697f4145db
parent2e1809208a4a52e883527c288b4fca61a90100b2
net: xfrm: drop check of pols[0] for the second time

!pols[0] is checked earlier.  If we don't return, pols[0] is always
true.  We should drop the check of pols[0] for the second time and the
binary is also smaller.

Before:
   text    data     bss     dec     hex filename
  48395     957     240   49592    c1b8 net/xfrm/xfrm_policy.o

After:
   text    data     bss     dec     hex filename
  48379     957     240   49576    c1a8 net/xfrm/xfrm_policy.o

Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c