diff mbox

[net-next,4/5] xfrm: fix checkpatch error

Message ID 1387455734-7624-5-git-send-email-chenweilong@huawei.com
State Awaiting Upstream, archived
Delegated to: David Miller
Headers show

Commit Message

chenweilong Dec. 19, 2013, 12:22 p.m. UTC
From: Weilong Chen <chenweilong@huawei.com>

Fix that "else should follow close brace '}'".

Signed-off-by: Weilong Chen <chenweilong@huawei.com>
---
 net/xfrm/xfrm_policy.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox

Patch

diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index ccf3063..8be5abb 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -1311,8 +1311,7 @@  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)