Date: Sat, 4 Jun 2016 17:23:08 +0000 (UTC) From: Andrew Rybchenko <arybchik@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r301400 - stable/10/sys/dev/sfxge/common Message-ID: <201606041723.u54HN8Pa060046@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606041723.u54HN8Pa060046>