svn commit: r300848 - head/sys/dev/sfxge/common

Andrew Rybchenko arybchik at FreeBSD.org
Fri May 27 11:49:47 UTC 2016


Author: arybchik
Date: Fri May 27 11:49:46 2016
New Revision: 300848
URL: https://svnweb.freebsd.org/changeset/base/300848

Log:
  sfxge(4): avoid necessity to add one more constant condition note
  
  Use for forever loop instead of while.
  
  Found by lint on illumos.
  
  Submitted by:   Garrett D'Amore <garrett at damore.org>
  Sponsored by:   Solarflare Communications, Inc.
  MFC after:      1 week

Modified:
  head/sys/dev/sfxge/common/ef10_nvram.c

Modified: head/sys/dev/sfxge/common/ef10_nvram.c
==============================================================================
--- head/sys/dev/sfxge/common/ef10_nvram.c	Fri May 27 11:49:05 2016	(r300847)
+++ head/sys/dev/sfxge/common/ef10_nvram.c	Fri May 27 11:49:46 2016	(r300848)
@@ -362,7 +362,7 @@ tlv_last_segment_end(
 	 * is no end tag then the previous segment was the last valid one,
 	 * so return the pointer to its end tag.
 	 */
-	while (1) {
+	for (;;) {
 		if (tlv_init_cursor(&segment_cursor, segment_start,
 		    cursor->limit, segment_start) != 0)
 			break;


More information about the svn-src-head mailing list