xfrm: Remove unused xfrm_state from xfrm_state_check_space
Subsystems (3)
Steffen Klassert
maintainerPATCH 1/1 xfrm: Remove unused xfrm_state from xfrm_state_check_space
The xfrm_state argument is unused in this function, so remove it. Also the name xfrm_state_check_space does not really match what this function does. It actually checks if we have enough head and tailroom on the skb. So we rename the function to xfrm_skb_check_space.
Signed-off-by Steffen Klassert <[email protected]>
--- net/xfrm/xfrm_output.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
net/xfrm/xfrm_output.c +2 -2
@@ -21,7 +21,7 @@static int xfrm_output2 (struct sk_buff *skb); -static int xfrm_state_check_space (struct xfrm_state *x,struct sk_buff *skb) +static int xfrm_skb_check_space (struct sk_buff *skb) {struct dst_entry *dst =skb_dst (skb);int nhead = dst->header_len +LL_RESERVED_SPACE (dst->dev)
@@ -48,7 +48,7 @@ static int xfrm_output_one(struct sk_buff *skb, int err) goto resume; do { - err = xfrm_state_check_space(x, skb); + err = xfrm_skb_check_space(skb); if (err) { XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTERROR); goto error_nolock;
Signature · 1 line
1.7.0.4
From: Steffen Klassert <[email protected]>
Date: Thu, 22 Mar 2012 10:32:39 +0100
Quoted 6 lines
The
xfrm_stateargument is unused in this function, so remove it. Also the namexfrm_state_check_spacedoes not really match what this function does. It actually checks if we have enough head and tailroom on the skb. So we rename the function toxfrm_skb_check_space.Signed-off-by Steffen Klassert <[email protected]>
Applied.