Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 May 2016 11:49:46 +0000 (UTC)
From:      Andrew Rybchenko <arybchik@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300848 - head/sys/dev/sfxge/common
Message-ID:  <201605271149.u4RBnkIB045547@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



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