summaryrefslogtreecommitdiff
path: root/net/xfrm/xfrm_policy.c
diff options
context:
space:
mode:
authorWeilong Chen <chenweilong@huawei.com>2013-12-24 09:43:49 +0800
committerSteffen Klassert <steffen.klassert@secunet.com>2014-01-02 07:48:50 +0100
commit42054569f9b0da4f9a6cc91709f1a80fa83cb453 (patch)
treea611f4a1a2461c150359ab058500660886f8ae20 /net/xfrm/xfrm_policy.c
parent02d0892f98a5f43c86a3ee9dc796e529557a9f80 (diff)
xfrm: fix checkpatch error
Fix that "else should follow close brace '}'". Signed-off-by: Weilong Chen <chenweilong@huawei.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r--net/xfrm/xfrm_policy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index fbc72b4570de..b5c315e175a0 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -1316,9 +1316,9 @@ xfrm_tmpl_resolve_one(struct xfrm_policy *policy, const struct flowi *fl,
error = (x->km.state == XFRM_STATE_ERROR ?
-EINVAL : -EAGAIN);
xfrm_state_put(x);
- }
- else if (error == -ESRCH)
+ } else if (error == -ESRCH) {
error = -EAGAIN;
+ }
if (!tmpl->optional)
goto fail;