summaryrefslogtreecommitdiffstats
path: root/net/xfrm
diff options
context:
space:
mode:
authorAviv Heller <avivh@mellanox.com>2017-11-28 19:55:42 +0200
committerSteffen Klassert <steffen.klassert@secunet.com>2017-12-01 07:41:48 +0100
commit9b7e14dba0c087e950fc024b486e8f729c1ee672 (patch)
tree6dffff1a41657a346796f2470a5e7a40d1d4780d /net/xfrm
parent43024b9ccd524ea1ad3e441edf08cb893bcd6d62 (diff)
downloadlinux-9b7e14dba0c087e950fc024b486e8f729c1ee672.tar.bz2
xfrm: Remove redundant state assignment in xfrm_input()
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>
Diffstat (limited to 'net/xfrm')
-rw-r--r--net/xfrm/xfrm_input.c1
1 files changed, 0 insertions, 1 deletions
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)) {