Commit 26b2072e authored by Steffen Klassert's avatar Steffen Klassert Committed by David S. Miller

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: default avatarSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f0229eaa
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
static int xfrm_output2(struct sk_buff *skb); 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); struct dst_entry *dst = skb_dst(skb);
int nhead = dst->header_len + LL_RESERVED_SPACE(dst->dev) 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) ...@@ -48,7 +48,7 @@ static int xfrm_output_one(struct sk_buff *skb, int err)
goto resume; goto resume;
do { do {
err = xfrm_state_check_space(x, skb); err = xfrm_skb_check_space(skb);
if (err) { if (err) {
XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTERROR); XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTERROR);
goto error_nolock; goto error_nolock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment