diff mbox series

[5/5] xfrm: Remove redundant state assignment in xfrm_input()

Message ID 20171215121952.20745-6-steffen.klassert@secunet.com
State Accepted, archived
Delegated to: David Miller
Headers show
Series [1/5] net: xfrm: allow clearing socket xfrm policies. | expand

Commit Message

Steffen Klassert Dec. 15, 2017, 12:19 p.m. UTC
From: Aviv Heller <avivh@mellanox.com>

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 | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/net/xfrm/xfrm_input.c b/net/xfrm/xfrm_input.c
index 347ab31574d5..ac277b97e0d7 100644
--- a/net/xfrm/xfrm_input.c
+++ b/net/xfrm/xfrm_input.c
@@ -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)) {