diff options
author | Simon Horman <horms@verge.net.au> | 2010-11-08 19:33:25 -0500 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2010-11-15 18:13:08 -0500 |
commit | 7ae246a15a5c9d26cfb572d36794325db0400b18 (patch) | |
tree | 6347de49d673c5cf0f9b5072834c63a65dc5bf55 | |
parent | d494262b8a0f3507b62104a565849124abe29827 (diff) |
IPVS: Remove useless { } block from ip_vs_process_message()
Acked-by: Hans Schillstrom <hans.schillstrom@ericsson.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | net/netfilter/ipvs/ip_vs_sync.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c index a4dccbc4f1bb..72b3d88d35f4 100644 --- a/net/netfilter/ipvs/ip_vs_sync.c +++ b/net/netfilter/ipvs/ip_vs_sync.c | |||
@@ -381,20 +381,18 @@ static void ip_vs_process_message(const char *buffer, const size_t buflen) | |||
381 | } | 381 | } |
382 | } | 382 | } |
383 | 383 | ||
384 | { | 384 | if (ip_vs_conn_fill_param_sync(AF_INET, s->protocol, |
385 | if (ip_vs_conn_fill_param_sync(AF_INET, s->protocol, | 385 | (union nf_inet_addr *)&s->caddr, |
386 | (union nf_inet_addr *)&s->caddr, | 386 | s->cport, |
387 | s->cport, | 387 | (union nf_inet_addr *)&s->vaddr, |
388 | (union nf_inet_addr *)&s->vaddr, | 388 | s->vport, ¶m)) { |
389 | s->vport, ¶m)) { | 389 | pr_err("ip_vs_conn_fill_param_sync failed"); |
390 | pr_err("ip_vs_conn_fill_param_sync failed"); | 390 | return; |
391 | return; | ||
392 | } | ||
393 | if (!(flags & IP_VS_CONN_F_TEMPLATE)) | ||
394 | cp = ip_vs_conn_in_get(¶m); | ||
395 | else | ||
396 | cp = ip_vs_ct_in_get(¶m); | ||
397 | } | 391 | } |
392 | if (!(flags & IP_VS_CONN_F_TEMPLATE)) | ||
393 | cp = ip_vs_conn_in_get(¶m); | ||
394 | else | ||
395 | cp = ip_vs_ct_in_get(¶m); | ||
398 | if (!cp) { | 396 | if (!cp) { |
399 | /* | 397 | /* |
400 | * Find the appropriate destination for the connection. | 398 | * Find the appropriate destination for the connection. |