diff mbox

ipvs: Remove unused variable "cs" from ip_vs_leave function.

Message ID 1318967989-14076-1-git-send-email-krzysztof.wilczynski@linux.com
State Not Applicable, archived
Delegated to: David Miller
Headers show

Commit Message

Krzysztof Wilczynski Oct. 18, 2011, 7:59 p.m. UTC
This is to address the following warning during compilation time:

  net/netfilter/ipvs/ip_vs_core.c: In function ‘ip_vs_leave’:
  net/netfilter/ipvs/ip_vs_core.c:532: warning: unused variable ‘cs’

This variable is indeed no longer in use.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
---
 net/netfilter/ipvs/ip_vs_core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Simon Horman Oct. 19, 2011, 10:51 a.m. UTC | #1
On Tue, Oct 18, 2011 at 08:59:49PM +0100, Krzysztof Wilczynski wrote:
> This is to address the following warning during compilation time:
> 
>   net/netfilter/ipvs/ip_vs_core.c: In function ‘ip_vs_leave’:
>   net/netfilter/ipvs/ip_vs_core.c:532: warning: unused variable ‘cs’
> 
> This variable is indeed no longer in use.

Thanks, applied to ipvs-next,
currently living at git://github.com/horms/ipvs-next.git
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c
index 00ea1ad..4f7d89d 100644
--- a/net/netfilter/ipvs/ip_vs_core.c
+++ b/net/netfilter/ipvs/ip_vs_core.c
@@ -529,7 +529,7 @@  int ip_vs_leave(struct ip_vs_service *svc, struct sk_buff *skb,
 	   a cache_bypass connection entry */
 	ipvs = net_ipvs(net);
 	if (ipvs->sysctl_cache_bypass && svc->fwmark && unicast) {
-		int ret, cs;
+		int ret;
 		struct ip_vs_conn *cp;
 		unsigned int flags = (svc->flags & IP_VS_SVC_F_ONEPACKET &&
 				      iph.protocol == IPPROTO_UDP)?