Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Dec 2012 21:15:43 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r244275 - projects/calloutng/sys/kern
Message-ID:  <201212152115.qBFLFhgQ038720@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sat Dec 15 21:15:43 2012
New Revision: 244275
URL: http://svnweb.freebsd.org/changeset/base/244275

Log:
  Move assignment out of the loop.  It should not change the code logic.

Modified:
  projects/calloutng/sys/kern/kern_timeout.c

Modified: projects/calloutng/sys/kern/kern_timeout.c
==============================================================================
--- projects/calloutng/sys/kern/kern_timeout.c	Sat Dec 15 21:12:13 2012	(r244274)
+++ projects/calloutng/sys/kern/kern_timeout.c	Sat Dec 15 21:15:43 2012	(r244275)
@@ -429,9 +429,8 @@ callout_process(struct bintime *now)
 	firstb &= callwheelmask;
 
 	/* Iterate callwheel from firstb to nowb and then up to lastb. */
-	exit_allowed = 0;
+	exit_allowed = exit_wanted = 0;
 	for (;;) {
-		exit_wanted = 0;
 		sc = &cc->cc_callwheel[firstb];
 		tmp = TAILQ_FIRST(sc);
 		while (tmp != NULL) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212152115.qBFLFhgQ038720>