summaryrefslogtreecommitdiffstats
path: root/net/xfrm
diff options
context:
space:
mode:
authorWeilong Chen <chenweilong@huawei.com>2013-12-24 02:43:49 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2014-01-02 07:48:50 +0100
commit42054569f9b0da4f9a6cc91709f1a80fa83cb453 (patch)
treea611f4a1a2461c150359ab058500660886f8ae20 /net/xfrm
parentxfrm: checkpatch erros with space prohibited (diff)
downloadlinux-42054569f9b0da4f9a6cc91709f1a80fa83cb453.tar.xz
linux-42054569f9b0da4f9a6cc91709f1a80fa83cb453.zip
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')
-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;