xfrm: Remove redundant state assignment in xfrm_input()
authorAviv Heller <avivh@mellanox.com>
Tue, 28 Nov 2017 17:55:42 +0000 (19:55 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 1 Dec 2017 06:41:48 +0000 (07:41 +0100)
x is already initialized to the same value, above.

Signed-off-by: Aviv Heller <avivh@mellanox.com>
Signed-off-by: Yevgeny Kliteynik <kliteyn@mellanox.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_input.c

index 347ab31574d509ac9edd448bcbb7501a05f5ac2d..ac277b97e0d7d3419d4cac8318ebf99b0eb0f18a 100644 (file)
@@ -231,7 +231,6 @@ int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type)
 
                if (xo && (xo->flags & CRYPTO_DONE)) {
                        crypto_done = true;
-                       x = xfrm_input_state(skb);
                        family = XFRM_SPI_SKB_CB(skb)->family;
 
                        if (!(xo->status & CRYPTO_SUCCESS)) {