Skip to content

Commit

Permalink
xfrm: Remove redundant state assignment in xfrm_input()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aviv Heller authored and Steffen Klassert committed Dec 1, 2017
1 parent 43024b9 commit 9b7e14d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/xfrm/xfrm_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 9b7e14d

Please sign in to comment.