![]() |
lvs-devel
|
| To: | lvs-devel@xxxxxxxxxxxxxxx |
|---|---|
| Subject: | [patch 2/9] IPVS: Remove useless { } block from ip_vs_process_message() |
| Cc: | Hans Schillstrom <hans.schillstrom@xxxxxxxxxxxx> |
| From: | Simon Horman <horms@xxxxxxxxxxxx> |
| Date: | Sun, 24 Oct 2010 00:26:28 +0900 |
Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>
Index: lvs-test-2.6/net/netfilter/ipvs/ip_vs_sync.c
===================================================================
--- lvs-test-2.6.orig/net/netfilter/ipvs/ip_vs_sync.c 2010-10-10
11:14:04.000000000 +0900
+++ lvs-test-2.6/net/netfilter/ipvs/ip_vs_sync.c 2010-10-10
11:14:11.000000000 +0900
@@ -381,20 +381,18 @@ static void ip_vs_process_message(const
}
}
- {
- if (ip_vs_conn_fill_param_sync(AF_INET, s->protocol,
- (union nf_inet_addr *)&s->caddr,
- s->cport,
- (union nf_inet_addr *)&s->vaddr,
- s->vport, ¶m)) {
- pr_err("ip_vs_conn_fill_param_sync failed");
- return;
- }
- if (!(flags & IP_VS_CONN_F_TEMPLATE))
- cp = ip_vs_conn_in_get(¶m);
- else
- cp = ip_vs_ct_in_get(¶m);
+ if (ip_vs_conn_fill_param_sync(AF_INET, s->protocol,
+ (union nf_inet_addr *)&s->caddr,
+ s->cport,
+ (union nf_inet_addr *)&s->vaddr,
+ s->vport, ¶m)) {
+ pr_err("ip_vs_conn_fill_param_sync failed");
+ return;
}
+ if (!(flags & IP_VS_CONN_F_TEMPLATE))
+ cp = ip_vs_conn_in_get(¶m);
+ else
+ cp = ip_vs_ct_in_get(¶m);
if (!cp) {
/*
* Find the appropriate destination for the connection.
--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [rfc v2 00/10] ipvs network name space (netns) aware, Julian Anastasov |
|---|---|
| Next by Date: | [patch 1/9] IPVS: Make the cp argument to ip_vs_sync_conn() static, Simon Horman |
| Previous by Thread: | [patch 0/9] [rfc] synchronisation of persistence engines, Simon Horman |
| Next by Thread: | [patch 1/9] IPVS: Make the cp argument to ip_vs_sync_conn() static, Simon Horman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |