Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/ibm4xx Use ``for (;;)'' for infinite loop, ...



details:   https://anonhg.NetBSD.org/src/rev/6e5acd9100fc
branches:  trunk
changeset: 960847:6e5acd9100fc
user:      rin <rin%NetBSD.org@localhost>
date:      Tue Mar 30 14:33:10 2021 +0000

description:
Use ``for (;;)'' for infinite loop, as required by style.
No binary changes.

diffstat:

 sys/arch/powerpc/ibm4xx/ibm4xx_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 29a15c2441e4 -r 6e5acd9100fc sys/arch/powerpc/ibm4xx/ibm4xx_machdep.c
--- a/sys/arch/powerpc/ibm4xx/ibm4xx_machdep.c  Tue Mar 30 14:29:54 2021 +0000
+++ b/sys/arch/powerpc/ibm4xx/ibm4xx_machdep.c  Tue Mar 30 14:33:10 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ibm4xx_machdep.c,v 1.36 2021/03/30 01:33:50 rin Exp $  */
+/*     $NetBSD: ibm4xx_machdep.c,v 1.37 2021/03/30 14:33:10 rin Exp $  */
 /*     Original: ibm40x_machdep.c,v 1.3 2005/01/17 17:19:36 shige Exp $ */
 
 /*
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ibm4xx_machdep.c,v 1.36 2021/03/30 01:33:50 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ibm4xx_machdep.c,v 1.37 2021/03/30 14:33:10 rin Exp $");
 
 #include "ksyms.h"
 
@@ -221,7 +221,7 @@
 
        printf("ppc4xx_reset() failed!\n");
 
-       while (1 /* CONSTCOND */) {
+       for (;;) {
 #if defined(DDB)
                Debugger();
 #elif defined(KGDB)



Home | Main Index | Thread Index | Old Index