Date: Sun, 7 Feb 2010 17:51:19 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r203615 - user/luigi/ipfw3-head/sys/netinet/ipfw Message-ID: <201002071751.o17HpJ5B090627@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002071751.o17HpJ5B090627>