Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm Style and whitespace. NFC.



details:   https://anonhg.NetBSD.org/src/rev/e52410f06ae4
branches:  trunk
changeset: 997612:e52410f06ae4
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Mar 16 10:13:34 2019 +0000

description:
Style and whitespace. NFC.

diffstat:

 sys/arch/arm/arm/undefined.c |  15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r ec8fd8c7d8e1 -r e52410f06ae4 sys/arch/arm/arm/undefined.c
--- a/sys/arch/arm/arm/undefined.c      Sat Mar 16 10:05:40 2019 +0000
+++ b/sys/arch/arm/arm/undefined.c      Sat Mar 16 10:13:34 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: undefined.c,v 1.62 2018/05/28 21:05:00 chs Exp $       */
+/*     $NetBSD: undefined.c,v 1.63 2019/03/16 10:13:34 skrll Exp $     */
 
 /*
  * Copyright (c) 2001 Ben Harris.
@@ -55,7 +55,7 @@
 #include <sys/kgdb.h>
 #endif
 
-__KERNEL_RCSID(0, "$NetBSD: undefined.c,v 1.62 2018/05/28 21:05:00 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: undefined.c,v 1.63 2019/03/16 10:13:34 skrll Exp $");
 
 #include <sys/kmem.h>
 #include <sys/queue.h>
@@ -399,10 +399,13 @@
                fault_code = 0;
 
        /* OK this is were we do something about the instruction. */
-       LIST_FOREACH(uh, &undefined_handlers[coprocessor], uh_link)
-           if (uh->uh_handler(fault_pc, fault_instruction, tf,
-                              fault_code) == 0)
-                   break;
+       LIST_FOREACH(uh, &undefined_handlers[coprocessor], uh_link) {
+               int ret = uh->uh_handler(fault_pc, fault_instruction, tf,
+                   fault_code);
+
+               if (ret == 0)
+                       break;
+       }
 
        if (uh == NULL) {
                /* Fault has not been handled */



Home | Main Index | Thread Index | Old Index