提交 ebd4687a 编写于 作者: J Jean Sacren 提交者: David S. Miller

xfrm: simplify the exit path of xfrm_output_one()

Clean up unnecessary assignment and jump. While there, fix up the label
name.
Signed-off-by: NJean Sacren <sakiwit@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6d75afe2
...@@ -89,7 +89,7 @@ static int xfrm_output_one(struct sk_buff *skb, int err) ...@@ -89,7 +89,7 @@ static int xfrm_output_one(struct sk_buff *skb, int err)
err = x->type->output(x, skb); err = x->type->output(x, skb);
if (err == -EINPROGRESS) if (err == -EINPROGRESS)
goto out_exit; goto out;
resume: resume:
if (err) { if (err) {
...@@ -107,15 +107,14 @@ static int xfrm_output_one(struct sk_buff *skb, int err) ...@@ -107,15 +107,14 @@ static int xfrm_output_one(struct sk_buff *skb, int err)
x = dst->xfrm; x = dst->xfrm;
} while (x && !(x->outer_mode->flags & XFRM_MODE_FLAG_TUNNEL)); } while (x && !(x->outer_mode->flags & XFRM_MODE_FLAG_TUNNEL));
err = 0; return 0;
out_exit:
return err;
error: error:
spin_unlock_bh(&x->lock); spin_unlock_bh(&x->lock);
error_nolock: error_nolock:
kfree_skb(skb); kfree_skb(skb);
goto out_exit; out:
return err;
} }
int xfrm_output_resume(struct sk_buff *skb, int err) int xfrm_output_resume(struct sk_buff *skb, int err)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册