[SSI] openssi/kernel/net/ipv4/ipvs ip_vs_ctl.c,1.13,1.14

Roger Tsang <[email protected]> Wed, 15 Dec 2010 08:00:49 +0000
Newsgroups gmane.linux.cluster.ssic.cvs
Message-ID <[email protected]>
Update of /cvsroot/ssic-linux/openssi/kernel/net/ipv4/ipvs
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv24301/kernel/net/ipv4/ipvs

Modified Files:
      Tag: OPENSSI-FC
	ip_vs_ctl.c 
Log Message:
service_add: remove unnecessary test
service_del: remove unnecessary test


Index: ip_vs_ctl.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/net/ipv4/ipvs/ip_vs_ctl.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- ip_vs_ctl.c	3 Feb 2009 06:18:14 -0000	1.13
+++ ip_vs_ctl.c	15 Dec 2010 08:00:47 -0000	1.14
@@ -2469,8 +2469,7 @@
 add_dest:
 #endif
 	ret = ip_vs_add_dest(svc, &udest);
-	if (svc)
-		ip_vs_service_put(svc);
+	ip_vs_service_put(svc);
 
 out_unlock:
 	up(&__ip_vs_mutex);
@@ -2548,8 +2547,7 @@
 	}
 
 out_put:
-	if (svc)
-		ip_vs_service_put(svc);
+	ip_vs_service_put(svc);
 #else
 	if(svc->num_dests == 0) { 
 		ret = ip_vs_del_service(svc);


------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d