diff options
author | 2022-05-05 13:06:39 +0300 | |
---|---|---|
committer | 2022-05-06 08:25:46 +0200 | |
commit | a36708e646586f74d073199828ed878b223e988d (patch) | |
tree | 105a2afe06c6c4cd0f1fa129775e584e716fbb63 /net/xfrm/xfrm_device.c | |
parent | xfrm: free not used XFRM_ESP_NO_TRAILER flag (diff) | |
download | linux-a36708e646586f74d073199828ed878b223e988d.tar.gz linux-a36708e646586f74d073199828ed878b223e988d.tar.bz2 linux-a36708e646586f74d073199828ed878b223e988d.zip |
xfrm: delete not used number of external headers
num_exthdrs is set but never used, so delete it.
Reviewed-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_device.c')
-rw-r--r-- | net/xfrm/xfrm_device.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_device.c b/net/xfrm/xfrm_device.c index 36aa01d92b65..dbd923e1d5f0 100644 --- a/net/xfrm/xfrm_device.c +++ b/net/xfrm/xfrm_device.c @@ -264,13 +264,11 @@ int xfrm_dev_state_add(struct net *net, struct xfrm_state *x, xso->dev = dev; netdev_tracker_alloc(dev, &xso->dev_tracker, GFP_ATOMIC); xso->real_dev = dev; - xso->num_exthdrs = 1; /* Don't forward bit that is not implemented */ xso->flags = xuo->flags & ~XFRM_OFFLOAD_IPV6; err = dev->xfrmdev_ops->xdo_dev_state_add(x); if (err) { - xso->num_exthdrs = 0; xso->flags = 0; xso->dev = NULL; xso->real_dev = NULL; |