Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 KNF



details:   https://anonhg.NetBSD.org/src/rev/e4c3fd3c2de9
branches:  trunk
changeset: 826410:e4c3fd3c2de9
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Sep 02 11:57:09 2017 +0000

description:
KNF

diffstat:

 sys/arch/arm/arm32/pmap.c |  13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diffs (48 lines):

diff -r fe6d2ca07f41 -r e4c3fd3c2de9 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Sat Sep 02 11:52:30 2017 +0000
+++ b/sys/arch/arm/arm32/pmap.c Sat Sep 02 11:57:09 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.354 2017/09/02 11:52:30 skrll Exp $ */
+/*     $NetBSD: pmap.c,v 1.355 2017/09/02 11:57:09 skrll Exp $ */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -217,7 +217,7 @@
 
 #include <arm/locore.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.354 2017/09/02 11:52:30 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.355 2017/09/02 11:57:09 skrll Exp $");
 
 //#define PMAP_DEBUG
 #ifdef PMAP_DEBUG
@@ -1937,8 +1937,7 @@
                        /* Writable mappings */
                        if (pv->pv_flags & PVF_WRITE)
                                ++writable;
-               } else
-               if (pv->pv_flags & PVF_WRITE)
+               } else if (pv->pv_flags & PVF_WRITE)
                        other_writable = 1;
        }
 
@@ -1981,8 +1980,7 @@
                        PTE_SYNC_CURRENT(pv->pv_pmap, ptep);
                }
                cpu_cpwait();
-       } else
-       if (entries > cacheable_entries) {
+       } else if (entries > cacheable_entries) {
                /*
                 * Turn cacheing back on for some pages.  If it is a kernel
                 * page, only do so if there are no other writable pages.
@@ -2425,8 +2423,7 @@
                                        npte |= pte_l2_s_cache_mode;
                                        pv->pv_flags &= ~PVF_NC;
                                }
-                       } else
-                       if (l2pte_writable_p(opte)) {
+                       } else if (l2pte_writable_p(opte)) {
                                /*
                                 * Entry is writable/cacheable: check if pmap
                                 * is current if it is flush it, otherwise it



Home | Main Index | Thread Index | Old Index