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/5e100dc659c8
branches:  trunk
changeset: 982078:5e100dc659c8
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 82bd3fecbe0e -r 5e100dc659c8 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