aboutsummaryrefslogtreecommitdiffstats
path: root/net
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
parentxfrm: Fix xfrm_dev_state_add to fail for unsupported HW SA option (diff)
downloadlinux-dev-9b7e14dba0c087e950fc024b486e8f729c1ee672.tar.xz
linux-dev-9b7e14dba0c087e950fc024b486e8f729c1ee672.zip
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')
-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)) {