svn commit: r203615 - user/luigi/ipfw3-head/sys/netinet/ipfw

Luigi Rizzo luigi at FreeBSD.org
Sun Feb 7 17:51:20 UTC 2010


Author: luigi
Date: Sun Feb  7 17:51:19 2010
New Revision: 203615
URL: http://svn.freebsd.org/changeset/base/203615

Log:
  avoid a compiler warning on a function that does not return a value.

Modified:
  user/luigi/ipfw3-head/sys/netinet/ipfw/dn_sched_rr.c

Modified: user/luigi/ipfw3-head/sys/netinet/ipfw/dn_sched_rr.c
==============================================================================
--- user/luigi/ipfw3-head/sys/netinet/ipfw/dn_sched_rr.c	Sun Feb  7 17:50:13 2010	(r203614)
+++ user/luigi/ipfw3-head/sys/netinet/ipfw/dn_sched_rr.c	Sun Feb  7 17:51:19 2010	(r203615)
@@ -107,11 +107,13 @@ static inline void
 remove_queue_q(struct rr_queue *q, struct rr_si *si)
 {
 	struct rr_queue *prev;
-	
+
 	if (q->status != 1)
 		return;
-	if (q == si->head)
-		return rr_remove_head(si);
+	if (q == si->head) {
+		rr_remove_head(si);
+		return;
+	}
 
 	for (prev = si->head; prev; prev = prev->qnext) {
 		if (prev->qnext != q)


More information about the svn-src-user mailing list