svn commit: r301400 - stable/10/sys/dev/sfxge/common
Andrew Rybchenko
arybchik at FreeBSD.org
Sat Jun 4 17:23:09 UTC 2016
Author: arybchik
Date: Sat Jun 4 17:23:08 2016
New Revision: 301400
URL: https://svnweb.freebsd.org/changeset/base/301400
Log:
MFC r300848
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.
Modified:
stable/10/sys/dev/sfxge/common/ef10_nvram.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/dev/sfxge/common/ef10_nvram.c
==============================================================================
--- stable/10/sys/dev/sfxge/common/ef10_nvram.c Sat Jun 4 17:22:10 2016 (r301399)
+++ stable/10/sys/dev/sfxge/common/ef10_nvram.c Sat Jun 4 17:23:08 2016 (r301400)
@@ -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-stable-10
mailing list