From 8d8507f1ba2cdae95bb228b88d0d655e01530f31 Mon Sep 17 00:00:00 2001 From: Andrew Rybchenko Date: Fri, 27 May 2016 11:49:46 +0000 Subject: [PATCH] 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 Sponsored by: Solarflare Communications, Inc. MFC after: 1 week --- sys/dev/sfxge/common/ef10_nvram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/sfxge/common/ef10_nvram.c b/sys/dev/sfxge/common/ef10_nvram.c index 4f1c2f11cdc..7f93df3a45a 100644 --- a/sys/dev/sfxge/common/ef10_nvram.c +++ b/sys/dev/sfxge/common/ef10_nvram.c @@ -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;